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

Can't build plugin with Maven 3.6.3 and Java 1.8

      I'm trying to build the plugin project with Maven 3.6.3 and Oracle JDK 1.8, but it fails:

      [ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.3:findbugs (findbugs) on project anchore-container-scanner: Unable to parse configuration of mojo org.codehaus.mojo:findbugs-maven-plugin:3.0.3:findbugs for parameter pluginArtifacts: Cannot assign configuration entry 'pluginArtifacts' with value '${plugin.artifacts}' of type java.util.Collections.UnmodifiableRandomAccessList to property of type java.util.ArrayList -> [Help 1]

          [JENKINS-65720] Can't build plugin with Maven 3.6.3 and Java 1.8

          Anders Hammar added a comment -

          I can build if I:

          • Upgrade parent to v4.15
          • Change jenkins.version to 2.249.1
          • Change java.level to 8

          jenkins.version and java.level can most likely be lowered, but I tested something I have in another plugin. But I strongly suggest upgrading to a newer parent. Or adding info about build environment requirements.

          Anders Hammar added a comment - I can build if I: Upgrade parent to v4.15 Change jenkins.version to 2.249.1 Change java.level to 8 jenkins.version and java.level can most likely be lowered, but I tested something I have in another plugin. But I strongly suggest upgrading to a newer parent. Or adding info about build environment requirements.

          Mark Waite added a comment -

          Release 3.2.0 requires Jenkins 2.426.3 and that no longer supports Java 8. The plugin is compiled with Java 11.

          Mark Waite added a comment - Release 3.2.0 requires Jenkins 2.426.3 and that no longer supports Java 8. The plugin is compiled with Java 11.

            nurmi Daniel Nurmi
            ahammar Anders Hammar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: