maven-enforcer-plugin reports missing dependencies on latest POM / BOM
Closed this issue · 3 comments
offa commented
Jenkins and plugins versions report
Environment
BOM: 1508.v4b_d09ff0e893
POM: 4.43.1 (latest)
Jenkins: A LTS listed in BOM
What Operating System are you using (both controller, and any agents involved in the problem)?
- Linux / Windows (Jenkins CI)
- Linux (local)
Reproduction steps
- Update BOM or POM to latest versions (see examples below)
- Build the project
- Warnings appear
Expected Results
No missing dependencies / warnings
Actual Results
Warnings are issued for missing dependencies
Example:
[WARNING] Missing:
----------
1) org.jenkins-ci.plugins.workflow:workflow-step-api:jar:625.vd896b_f445a_f8
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jenkins-ci.plugins.workflow -DartifactId=workflow-step-api -Dversion=625.vd896b_f445a_f8 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jenkins-ci.plugins.workflow -DartifactId=workflow-step-api -Dversion=625.vd896b_f445a_f8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.jenkins-ci.plugins.workflow:workflow-step-api:jar:625.vd896b_f445a_f8
----------
1 required artifact is missing.
for artifact:
org.jenkins-ci.plugins.workflow:workflow-step-api:jar:625.vd896b_f445a_f8
from the specified remote repositories:
central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
Path to dependency:
1) org.jenkins-ci.plugins.workflow:workflow-step-api:jar:625.vd896b_f445a_f8
Anything else?
Examples:
jetersen commented
This is already reported as mojohaus/extra-enforcer-rules#225
Should be fixed by releasing: #581
cc @basil @timja @jtnord could use a release here I'd guess.
timja commented
offa commented
Thanks for the quick fix!