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

maven-enforcer-plugin reports missing dependencies on latest POM / BOM #586

Closed
offa opened this issue Jul 26, 2022 · 3 comments
Closed

maven-enforcer-plugin reports missing dependencies on latest POM / BOM #586

offa opened this issue Jul 26, 2022 · 3 comments
Labels

Comments

@offa
Copy link

offa commented Jul 26, 2022

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

  1. Update BOM or POM to latest versions (see examples below)
  2. Build the project
  3. 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:

@offa offa added the bug label Jul 26, 2022
@jetersen
Copy link
Member

jetersen commented Jul 26, 2022

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
Copy link
Member

timja commented Jul 26, 2022

Released in https://github.com/jenkinsci/plugin-pom/releases/tag/plugin-4.44

@timja timja closed this as completed Jul 26, 2022
@offa
Copy link
Author

offa commented Jul 26, 2022

Thanks for the quick fix!

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

3 participants