Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8622

Remove the version of the maven-resources-plugin from the fast profile

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.18.0
    • parent
    • None

    Description

      The oak-parent pom contains a version for the maven-resources-plugin in the fast profile. This can lead to problems when executing that profile, since the version of the plugin is otherwise inherited from the Maven parent pom.

      For instance, with Maven 3.5.4 I get the following error when building Oak with the fast profile:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0:resources (default-resources) on project oak-it-osgi: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:3.1.0:resources failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-resources-plugin:3.1.0:resources: java.lang.NoSuchMethodError: 'void org.apache.maven.shared.filtering.MavenResourcesExecution.setAddDefaultExcludes(boolean)'
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.apache.maven.plugins:maven-resources-plugin:3.1.0-1339233906
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/home/robert/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/3.1.0/maven-resources-plugin-3.1.0.jar
      [ERROR] urls[1] = file:/home/robert/.m2/repository/org/apache/maven/shared/maven-filtering/1.3/maven-filtering-1.3.jar
      [ERROR] urls[2] = file:/home/robert/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
      [ERROR] urls[3] = file:/home/robert/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
      [ERROR] urls[4] = file:/home/robert/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.6/maven-shared-utils-0.6.jar
      [ERROR] urls[5] = file:/home/robert/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
      [ERROR] urls[6] = file:/home/robert/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar
      [ERROR] urls[7] = file:/home/robert/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
      [ERROR] urls[8] = file:/home/robert/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
      [ERROR] urls[9] = file:/home/robert/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
      [ERROR] urls[10] = file:/home/robert/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar
      [ERROR] urls[11] = file:/home/robert/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      [ERROR] urls[12] = file:/home/robert/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      [ERROR] urls[13] = file:/home/robert/.m2/repository/org/codehaus/plexus/plexus-utils/3.1.0/plexus-utils-3.1.0.jar
      [ERROR] urls[14] = file:/home/robert/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
      [ERROR] urls[15] = file:/home/robert/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.24/plexus-interpolation-1.24.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      

      Removing the version fixes the problem for me.

      Attachments

        Activity

          People

            rombert Robert Munteanu
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: