Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when target pom.xml has explicit dependency and thin.properties does not #143

Closed
dsyer opened this issue Jun 9, 2020 · 0 comments
Closed
Labels
Milestone

Comments

@dsyer
Copy link
Collaborator

dsyer commented Jun 9, 2020

If the target (archive) pom.xml has an explicit dependency version, and the thin.properties does not (but it would resolve from a BOM) there is an error.

Caused by: hidden.org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.cloud:spring-cloud-deployer-thin:jar -> version 1.0.22.RELEASE vs (?) @ 
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-deployer-thin:jar is missing. @ 

	at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:195)
	at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:126)
	at org.springframework.boot.loader.thin.DependencyResolver.dependencies(DependencyResolver.java:213)
	... 30 more
Caused by: hidden.org.apache.maven.model.building.ModelBuildingException: 2 problems were encountered while building the effective model for org.springframework.cloud.launcher:spring-cloud-launcher-deployer:2.2.1.RELEASE
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.cloud:spring-cloud-deployer-thin:jar -> version 1.0.22.RELEASE vs (?) @ 
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-deployer-thin:jar is missing. @ 

	at hidden.org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:197)
	at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:479)
	at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:421)
	at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:411)
	at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:161)
	... 32 more

Leads to spring-cloud/spring-cloud-cli#147

@dsyer dsyer added the bug label Jun 9, 2020
@dsyer dsyer added this to the 1.0.25 milestone Jun 9, 2020
@dsyer dsyer closed this as completed in 054d521 Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant