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

Plugin cannot build because the Maven version it specifies is too low (3.3.9 vs 3.8.1+) #1218

Closed
chriskilding opened this issue Jan 11, 2022 · 1 comment · Fixed by #1219
Closed
Labels
bug For changelog: Minor bug. Will be listed after features

Comments

@chriskilding
Copy link

Jenkins and plugins versions report

N/A (problem occurs when compiling plugin with Maven)

What Operating System are you using (both controller, and any agents involved in the problem)?

N/A (problem occurs when compiling plugin with Maven)

Reproduction steps

  1. Clone project.
  2. Run Maven validate on project using the Maven wrapper

Expected Results

validate should be successful.

Actual Results

An error that the Maven version is too low (the Maven wrapper settings pull in 3.3.9, but Jenkins parent POM requires at least 3.8.1):

[INFO] Scanning for projects...
[WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:3.22 is missing, no dependency information available
[WARNING] Failed to build parent project for org.jenkins-ci.plugins:gitlab-plugin:hpi:1.5.28-SNAPSHOT
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building GitLab Plugin 1.5.28-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-hpi-plugin:3.22:validate (default-validate) @ gitlab-plugin ---
[INFO] 
[INFO] --- maven-hpi-plugin:3.22:validate-hpi (default-validate-hpi) @ gitlab-plugin ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0:display-info (display-info) @ gitlab-plugin ---
[INFO] Maven Version: 3.3.9
[INFO] JDK Version: 11.0.12 normalized as: 11.0.12
[INFO] Java Vendor: Eclipse Foundation
[INFO] OS Info: Arch: x86_64 Family: mac Name: mac os x Version: 11.1
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0:enforce (display-info) @ gitlab-plugin ---
[WARNING] The POM for org.apache.logging.log4j:log4j-api-java9:zip:2.11.2 is missing, no dependency information available
[INFO] Ignoring requireUpperBoundDeps in javax.servlet:javax.servlet-api
[INFO] Ignoring requireUpperBoundDeps in org.kohsuke:access-modifier-annotation
[INFO] Ignoring requireUpperBoundDeps in com.google.guava:guava
[INFO] Adding ignore: module-info
[WARNING] Rule 2: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
3.8.1 required to no longer download dependencies via HTTP (use HTTPS instead).
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.820 s
[INFO] Finished at: 2022-01-11T11:52:21+00:00
[INFO] Final Memory: 32M/114M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce (display-info) on project gitlab-plugin: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
[ERROR] 

Anything else?

I don't have Maven 3.3.9 installed on my system, so I can only assume that mvnw has pulled it in.

@chriskilding chriskilding added the bug For changelog: Minor bug. Will be listed after features label Jan 11, 2022
@basil
Copy link
Member

basil commented Feb 3, 2022

Released in 1.5.28.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants