Build failed in Jenkins: java-mvn-enforcer #24
Shibboleth Jenkins
noreply at shibboleth.net
Wed Jan 11 16:18:04 UTC 2023
See <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/24/display/redirect>
Changes:
------------------------------------------
Started by user Rod Widdowson
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on EC2 (I2) - Rocky9-commits (i-0bf35dc058d1c1d4a) (Rocky9-commits) in workspace <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/>
The recommended git tool is: NONE
No credentials specified
> git rev-parse --resolve-git-dir <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/.git> # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://git.shibboleth.net/git/java-mvn-enforcer # timeout=10
Fetching upstream changes from https://git.shibboleth.net/git/java-mvn-enforcer
> git --version # timeout=10
> git --version # 'git version 2.31.1'
> git fetch --tags --force --progress -- https://git.shibboleth.net/git/java-mvn-enforcer +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/main^{commit} # timeout=10
Checking out Revision 04f58d33450e4a98c96ea8ccced0256e76b3c752 (refs/remotes/origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 04f58d33450e4a98c96ea8ccced0256e76b3c752 # timeout=10
Commit message: "JMVN-45 Investigate building a parent pom with the minimum subset of JPAR"
> git rev-list --no-walk 04f58d33450e4a98c96ea8ccced0256e76b3c752 # timeout=10
[java-mvn-enforcer] $ /opt/maven_home/bin/mvn -f parent/pom.xml -Dmaven.repo.local=<http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/.repository> -V clean -B -U deploy
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/maven_home
Java version: 11.0.17, vendor: Amazon.com Inc., runtime: /efs/optjava/jdk/amazon/amazon-corretto-11.0.17.8.1-linux-x64
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "5.14.0-162.6.1.el9_1.0.1.x86_64", arch: "amd64", family: "unix"
[INFO] Scanning for projects...
[INFO]
[INFO] ---< net.shibboleth.maven.enforcer.rules:maven-dist-enforcer-parent >---
[INFO] Building Shibboleth Maven Enforcer 1.0.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ maven-dist-enforcer-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (maven-version) @ maven-dist-enforcer-parent ---
[INFO]
[INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) @ maven-dist-enforcer-parent ---
[INFO] Installing <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/parent/pom.xml> to <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/.repository/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-dist-enforcer-parent-1.0.0-SNAPSHOT.pom>
[INFO]
[INFO] --- maven-deploy-plugin:3.0.0-M2:deploy (default-deploy) @ maven-dist-enforcer-parent ---
[INFO] Using alternate deployment repository snapshot::https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots
[INFO] Using alternate deployment repository snapshot::https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots
[INFO] Downloading from snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-metadata.xml (638 B at 1.6 kB/s)
[INFO] Uploading to snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-dist-enforcer-parent-1.0.0-20230111.161754-2.pom
[INFO] Uploaded to snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-dist-enforcer-parent-1.0.0-20230111.161754-2.pom (26 kB at 148 kB/s)
[INFO] Downloading from snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/maven-metadata.xml
[INFO] Downloaded from snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/maven-metadata.xml (321 B at 9.2 kB/s)
[INFO] Uploading to snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Uploaded to snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-metadata.xml (638 B at 8.0 kB/s)
[INFO] Uploading to snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/maven-metadata.xml
[INFO] Uploaded to snapshot: https://build.shibboleth.net/nexus-proxy/content/repositories/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/maven-metadata.xml (321 B at 3.6 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.218 s
[INFO] Finished at: 2023-01-11T16:17:57Z
[INFO] ------------------------------------------------------------------------
[java-mvn-enforcer] $ /opt/maven_home/bin/mvn -f pom.xml -Dmaven.repo.local=<http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/.repository> -V clean -B -U deploy
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/maven_home
Java version: 11.0.17, vendor: Amazon.com Inc., runtime: /efs/optjava/jdk/amazon/amazon-corretto-11.0.17.8.1-linux-x64
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "5.14.0-162.6.1.el9_1.0.1.x86_64", arch: "amd64", family: "unix"
[INFO] Scanning for projects...
[INFO] Downloading from shib-thirdparty-snapshot: https://build.shibboleth.net/maven/thirdparty-snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading from shib-snapshot: https://build.shibboleth.net/maven/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from shib-snapshot: https://build.shibboleth.net/maven/snapshots/net/shibboleth/maven/enforcer/rules/maven-dist-enforcer-parent/1.0.0-SNAPSHOT/maven-metadata.xml (638 B at 1.6 kB/s)
[INFO]
[INFO] ------< net.shibboleth.maven.enforcer.rules:maven-dist-enforcer >-------
[INFO] Building Shibboleth Maven Enforcer 3.2.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ maven-dist-enforcer ---
[INFO] Deleting <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/target>
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (maven-version) @ maven-dist-enforcer ---
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ maven-dist-enforcer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/src/main/resources>
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ maven-dist-enforcer ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/target/classes>
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ maven-dist-enforcer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/src/test/resources>
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ maven-dist-enforcer ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/target/test-classes>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/src/test/java/net/shibboleth/mvn/enforcer/cli/impl/ListKeysCLI.java>:[54,14] cannot access org.springframework.context.ApplicationContextInitializer
bad class file: <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/.repository/org/springframework/spring-context/6.0.3/spring-context-6.0.3.jar(/org/springframework/context/ApplicationContextInitializer.class)>
class file has wrong version 61.0, should be 55.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.513 s
[INFO] Finished at: 2023-01-11T16:18:04Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile (default-testCompile) on project maven-dist-enforcer: Compilation failure
[ERROR] <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/src/test/java/net/shibboleth/mvn/enforcer/cli/impl/ListKeysCLI.java>:[54,14] cannot access org.springframework.context.ApplicationContextInitializer
[ERROR] bad class file: <http://127.0.0.1:1583/jenkins/job/java-mvn-enforcer/ws/.repository/org/springframework/spring-context/6.0.3/spring-context-6.0.3.jar(/org/springframework/context/ApplicationContextInitializer.class)>
[ERROR] class file has wrong version 61.0, should be 55.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Build step 'Invoke top-level Maven targets' marked build as failure
More information about the commits
mailing list