Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66263

unable to compile

XMLWordPrintable

      I just downloaded the plugin source code and started "mvn -B clean test". And then I get

      [INFO] Scanning for projects...
      [WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:3.10 is missing, no dependency information available
      [WARNING] Failed to build parent project for org.jenkins-ci.plugins:collapsing-console-sections:hpi:1.8.1-SNAPSHOT
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Jenkins Collapsing Console Sections Plugin 1.8.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ collapsing-console-sections ---
      [INFO]
      [INFO] --- maven-hpi-plugin:3.10:validate (default-validate) @ collapsing-console-sections ---
      [INFO]
      [INFO] --- maven-enforcer-plugin:3.0.0-M3:display-info (display-info) @ collapsing-console-sections ---
      [INFO] Maven Version: 3.3.9
      [INFO] JDK Version: 1.8.0_292 normalized as: 1.8.0-292
      [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 4.15.0-46-generic
      [INFO]
      [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (display-info) @ collapsing-console-sections ---
      [INFO] Adding ignore: module-info
      [WARNING] Rule 4: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps failed with message:
      Failed while enforcing RequireUpperBoundDeps. The error(s) are [
      Require upper bound dependencies error for com.github.spotbugs:spotbugs-annotations:3.1.12 paths to dependency are:
      +-org.jenkins-ci.plugins:collapsing-console-sections:1.8.1-SNAPSHOT
        +-com.github.spotbugs:spotbugs-annotations:3.1.12
      and
      +-org.jenkins-ci.plugins:collapsing-console-sections:1.8.1-SNAPSHOT
        +-org.jenkins-ci.plugins:jquery:1.11.2-0
          +-org.kohsuke.stapler:stapler-adjunct-jquery:1.11.2-0
            +-org.kohsuke.stapler:stapler:1.256
              +-com.github.spotbugs:spotbugs-annotations:3.1.12 (managed) <-- com.github.spotbugs:spotbugs-annotations:4.2.3
      ]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.277 s
      [INFO] Finished at: 2021-08-02T12:34:26+02:00
      [INFO] Final Memory: 96M/521M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (display-info) on project collapsing-console-sections: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException
      

      As I'm new to "mvn" I have no idea what this means. This is mvn v3.3.9. Maybe this is too old?

            hashar Antoine Musso
            heiko_nardmann Heiko Nardmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: