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

* in exclusion causes warning in maven #1715

Closed
spencergibb opened this issue Feb 20, 2017 · 6 comments
Closed

* in exclusion causes warning in maven #1715

spencergibb opened this issue Feb 20, 2017 · 6 comments

Comments

@spencergibb
Copy link
Member

https://github.com/spring-cloud/spring-cloud-netflix/blob/master/spring-cloud-netflix-dependencies/pom.xml#L273-L276

http://stackoverflow.com/questions/42347773/maven-dependencymanagement-warning-on-clean-project-generated-from-start-spring

[WARNING]
[WARNING] Some problems were encountered while building the effective model for eu.myapp.services.testsource:test:jar:0.0.1-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for com.netflix.eureka:eureka-core:jar with value '*' does not match a valid id pattern. @ org.springframework.cloud:spring-cloud-netflix-dependencies:1.3.0.BUILD-SNAPSHOT, /home/vagrant/.m2/repository/org/springframework/cloud/spring-cloud-netflix-dependencies/1.3.0.BUILD-SNAPSHOT/spring-cloud-netflix-dependencies-1.3.0.BUILD-SNAPSHOT.pom, line 273, column 19
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
@spencergibb
Copy link
Member Author

Closing as this is only a problem in maven 3.2.1, below our required version https://issues.apache.org/jira/browse/MNG-2315

@RikSchaaf
Copy link

Same issue on maven 3.3.9 (Which according to the readme is supported).

build	18-Feb-2020 14:40:35	[INFO] [WARNING] Some problems were encountered while building the effective model for xx.xx:xx-xx:pom:x.x.x
build	18-Feb-2020 14:40:35	[INFO] [WARNING] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for com.netflix.eureka:eureka-core:jar with value '*' does not match a valid id pattern. @ org.springframework.cloud:spring-cloud-netflix-dependencies:1.4.7.RELEASE, /data/atlassian/bamboo-m2-repository/org/springframework/cloud/spring-cloud-netflix-dependencies/1.4.7.RELEASE/spring-cloud-netflix-dependencies-1.4.7.RELEASE.pom, line 335, column 19

@spencergibb
Copy link
Member Author

Version 1.x is no longer supported

@jackstraw66
Copy link

I get this error using Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T12:39:06-07:00)

I need a way to exclude transitive dependencies using a wildcard character.

@spencergibb
Copy link
Member Author

@jackstraw66 is this specific to spring cloud?

@jackstraw66
Copy link

jackstraw66 commented Apr 29, 2020

No, a variety of dependencies including org.springframework.boot:spring-boot-dependencies:2.2.2.RELEASE.

Others are in-house dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants