[
https://issues.apache.org/jira/browse/OAK-8622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Reschke closed OAK-8622.
-------------------------------
> Remove the version of the maven-resources-plugin from the fast profile
> ----------------------------------------------------------------------
>
> Key: OAK-8622
> URL: https://issues.apache.org/jira/browse/OAK-8622
> Project: Jackrabbit Oak
> Issue Type: Task
> Components: parent
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Priority: Trivial
> Fix For: 1.18.0
>
>
> 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:
> {noformat}
> [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]]
> {noformat}
> Removing the version fixes the problem for me.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)