-
Notifications
You must be signed in to change notification settings - Fork 47
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
1.6.0 warns about missing dependencies when previous versions did not #225
Comments
Also reported as jenkinsci/jenkins#6875 (comment) |
we should use default remote repositories and repositories defined in project Fix #225
By the way In provided project I see only repositories with id: With definition
you mirror For resolving artifact only center was used - I fixed it. |
we should use default remote repositories and repositories defined in project Fix #225
we should use default remote repositories and repositories defined in project Fix #225
Version 1.6.1 fix an issue related to remote repositories not interrogated (see mojohaus/extra-enforcer-rules#225). Version 1.6.2 fix a similar issue: mojohaus/extra-enforcer-rules#231 So updating version from 1.6.0 to 1.6.2. extra-enforcer-rules depends on maven-enforcer-plugin so updating also maven-enforcer-plugin to version 3.2.1.
With the inclusion of #220 in extra enforcer plugin 1.6.0, dependencies are reported as missing even though previous versions of the extra enforcer plugin did not warn about those dependencies and later use in the project do not report the dependencies as missing.
Background
Jenkins plugins (like the implied labels plugin) use a parent pom that includes the extra enforcer rules plugin. When plugins are upgraded to a parent pom version that uses extra enforcer rules 1.6.0, the plugin builds now received warnings like the following:
The dependencies that are reported as unresolvable are then later resolved in the build process without issue.
Duplicate the issue
Duplicate the issue with the commands:
Configuration change to avoid the issue
When I was seeing the issue, my
~/.m2/settings.xml
file included the following mirror definition:I can avoid the issue by changing my
~/.m2/settings.xml
file to use the following mirror definition instead:Other users have reported the same issue, including:
Expected results
I think that warnings about unresolvable dependencies in the extra enforcer rules should be consistent with the warnings in the rest of a maven build process.
The text was updated successfully, but these errors were encountered: