Skip to content

Edit starters sometimes not adding 'bom' as needed by new dependency #313

Closed
@kdvolder

Description

@kdvolder

To reproduce:

  • create "New Spring Starter" project with 'Reactive Web' starter selected
  • Use 'Edit Starters' to add 'Function' dependency.

If it works correctly a bom should be added like this:

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

But in reality, no bom gets added and the 'pom' will have an error marker on it because dependencies cannot be resolved.

Note: our 'add bom' code will not use a property like ${spring-cloud.version} to refer to the bom version. It will just include the version directly. This is normal, that's how it also worked originally in initalizer itself, but they changed it a while back (maybe it should be changed in edit starters too, but that is a different issue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions