Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32440

Allow maven-shade-plugin upgrade / upgrade Maven in builders

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2021.52, 2023.10
    • Component/s: CI/CD

      Description

      Currently, in 2023, the org.apache.maven.plugins:maven-shade-plugin cannot be upgraded by Dependabot from to 3.5.1 to 3.5.2, see https://github.com/nuxeo/nuxeo-lts/pull/1750, because of the Maven version being too old in the builder containers.

      It's 3.6.1, requires 3.6.3.

      mvn -B -nsu -Dnuxeo.skip.enforcer=true -P-nexus,nexus-private -f server/pom.xml -DskipTests install
      ...
      [2024-02-21T19:44:14.724Z] [INFO] ----------------------< org.nuxeo:nuxeo-launcher >----------------------
      [2024-02-21T19:44:14.724Z] [INFO] Building Nuxeo Control Panel and Launcher 2023.8.12-PR-1750-BUILD-1 [3/5]
      [2024-02-21T19:44:14.724Z] [INFO] --------------------------------[ jar ]---------------------------------
      [2024-02-21T19:44:16.625Z] [INFO] 
      [2024-02-21T19:44:16.625Z] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-dependencies) @ nuxeo-launcher ---
      [2024-02-21T19:44:16.625Z] [INFO] Skipping Rule Enforcement.
      [2024-02-21T19:44:16.625Z] [INFO] 
      [2024-02-21T19:44:16.625Z] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-nuxeo-dependencies) @ nuxeo-launcher ---
      [2024-02-21T19:44:16.625Z] [INFO] Skipping Rule Enforcement.
      [2024-02-21T19:44:16.625Z] [INFO] 
      [2024-02-21T19:44:16.625Z] [INFO] --- buildnumber-maven-plugin:1.4:create (default) @ nuxeo-launcher ---
      [2024-02-21T19:44:16.625Z] [INFO] Storing buildNumber: 20240221-194416 at timestamp: 1708544656599
      [2024-02-21T19:44:16.625Z] [WARNING] Cannot get the branch information from the git repository: 
      [2024-02-21T19:44:16.625Z] Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref
      [2024-02-21T19:44:16.625Z] 
      [2024-02-21T19:44:16.625Z] [INFO] Executing: /bin/sh -c cd '/home/jenkins/workspace/nuxeo_lts_nuxeo_PR-1750/server/nuxeo-launcher' && 'git' 'rev-parse' '--verify' 'HEAD'
      [2024-02-21T19:44:16.625Z] [INFO] Working directory: /home/jenkins/workspace/nuxeo_lts_nuxeo_PR-1750/server/nuxeo-launcher
      [2024-02-21T19:44:16.625Z] [INFO] Storing buildScmBranch: UNKNOWN
      [2024-02-21T19:44:16.625Z] [INFO] 
      [2024-02-21T19:44:16.625Z] [INFO] --- incremental-build-plugin:1.6-NX1:incremental-build (default) @ nuxeo-launcher ---
      [2024-02-21T19:44:16.625Z] [INFO] Verifying module descriptor ...
      [2024-02-21T19:44:16.625Z] [INFO] Pom descriptor modification detected.
      [2024-02-21T19:44:16.625Z] [INFO] Deleting /home/jenkins/workspace/nuxeo_lts_nuxeo_PR-1750/server/nuxeo-launcher/target
      [2024-02-21T19:44:16.625Z] [INFO] 
      [2024-02-21T19:44:16.625Z] [INFO] --- maven-resources-plugin:3.3.1:copy-resources (copy-readme) @ nuxeo-launcher ---
      [2024-02-21T19:44:16.625Z] [INFO] Copying 0 resource from  to target/classes/doc
      [2024-02-21T19:44:16.625Z] [INFO] 
      [2024-02-21T19:44:16.625Z] [INFO] --- maven-resources-plugin:3.3.1:copy-resources (copy-readme-parent) @ nuxeo-launcher ---
      [2024-02-21T19:44:16.625Z] [INFO] Copying 1 resource from .. to target/classes/doc-parent
      [2024-02-21T19:44:16.625Z] [INFO] 
      [2024-02-21T19:44:16.625Z] [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ nuxeo-launcher ---
      [2024-02-21T19:44:16.625Z] [INFO] Copying 9 resources from src/main/resources to target/classes
      [2024-02-21T19:44:16.625Z] [INFO] 
      [2024-02-21T19:44:16.884Z] [INFO] --- maven-compiler-plugin:3.12.1:compile (default-compile) @ nuxeo-launcher ---
      [2024-02-21T19:44:16.884Z] [INFO] Recompiling the module because of changed source code.
      [2024-02-21T19:44:16.884Z] [INFO] Compiling 15 source files with javac [debug release 17] to target/classes
      [2024-02-21T19:44:17.820Z] [INFO] /home/jenkins/workspace/nuxeo_lts_nuxeo_PR-1750/server/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoLauncher.java: Some input files use or override a deprecated API.
      [2024-02-21T19:44:17.820Z] [INFO] /home/jenkins/workspace/nuxeo_lts_nuxeo_PR-1750/server/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoLauncher.java: Recompile with -Xlint:deprecation for details.
      [2024-02-21T19:44:17.820Z] [INFO] 
      [2024-02-21T19:44:17.820Z] [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ nuxeo-launcher ---
      [2024-02-21T19:44:17.820Z] [INFO] Copying 7 resources from src/test/resources to target/test-classes
      [2024-02-21T19:44:17.820Z] [INFO] 
      [2024-02-21T19:44:17.820Z] [INFO] --- maven-compiler-plugin:3.12.1:testCompile (default-testCompile) @ nuxeo-launcher ---
      [2024-02-21T19:44:17.820Z] [INFO] Recompiling the module because of changed dependency.
      [2024-02-21T19:44:17.820Z] [INFO] Compiling 4 source files with javac [debug release 17] to target/test-classes
      [2024-02-21T19:44:18.079Z] [INFO] 
      [2024-02-21T19:44:18.079Z] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ nuxeo-launcher ---
      [2024-02-21T19:44:18.338Z] [INFO] Tests are skipped.
      [2024-02-21T19:44:18.338Z] [INFO] 
      [2024-02-21T19:44:18.338Z] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ nuxeo-launcher ---
      [2024-02-21T19:44:18.338Z] [INFO] Building jar: /home/jenkins/workspace/nuxeo_lts_nuxeo_PR-1750/server/nuxeo-launcher/target/nuxeo-launcher-2023.8.12-PR-1750-BUILD-1.jar
      [2024-02-21T19:44:18.338Z] [INFO] 
      [2024-02-21T19:44:18.338Z] [INFO] --- build-helper-maven-plugin:1.12:remove-project-artifact (remove-old-installers) @ nuxeo-launcher ---
      [2024-02-21T19:44:18.338Z] [INFO] /root/.mvnrepository/org/nuxeo/nuxeo-launcher/2023.8.12-PR-1750-BUILD-1 removed.
      [2024-02-21T19:44:18.338Z] [INFO] ------------------------------------------------------------------------
      [2024-02-21T19:44:18.338Z] [INFO] Reactor Summary for Nuxeo Server 2023.8.12-PR-1750-BUILD-1:
      [2024-02-21T19:44:18.338Z] [INFO] 
      [2024-02-21T19:44:18.338Z] [INFO] Nuxeo Server ....................................... SUCCESS [  1.186 s]
      [2024-02-21T19:44:18.338Z] [INFO] Nuxeo Functional Tests ............................. SUCCESS [  5.132 s]
      [2024-02-21T19:44:18.338Z] [INFO] Nuxeo Control Panel and Launcher ................... FAILURE [  3.444 s]
      [2024-02-21T19:44:18.338Z] [INFO] Nuxeo Server NXR ................................... SKIPPED
      [2024-02-21T19:44:18.338Z] [INFO] Nuxeo Server Tomcat Build .......................... SKIPPED
      [2024-02-21T19:44:18.338Z] [INFO] ------------------------------------------------------------------------
      [2024-02-21T19:44:18.338Z] [INFO] BUILD FAILURE
      [2024-02-21T19:44:18.338Z] [INFO] ------------------------------------------------------------------------
      [2024-02-21T19:44:18.338Z] [INFO] Total time:  10.677 s
      [2024-02-21T19:44:18.338Z] [INFO] Finished at: 2024-02-21T19:44:18Z
      [2024-02-21T19:44:18.338Z] [INFO] ------------------------------------------------------------------------
      [2024-02-21T19:44:18.338Z] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.5.2:shade (default) on project nuxeo-launcher: The plugin org.apache.maven.plugins:maven-shade-plugin:3.5.2 requires Maven version 3.6.3 -> [Help 1]
      

      Let's upgrade Maven to the latest available: 3.9.6.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: