Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
4.0.0-alpha-2
-
None
-
None
Description
As in title, if any profiles are defined in user's settings.xml, the below error is produced
% mvn help:all-profiles -N [INFO] Scanning for projects... [INFO] Inspecting build with total of 1 modules... [INFO] Installing Nexus Staging features: [INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin [INFO] [INFO] -----------------------------------------------< com.flowlogix:flowlogix >------------------------------------------------ [INFO] Building Flow Logix Root 5.x-SNAPSHOT [INFO] from pom.xml [INFO] ---------------------------------------------------------[ pom ]---------------------------------------------------------- [INFO] [INFO] --- maven-help-plugin:3.3.0:all-profiles (default-cli) @ flowlogix --- [INFO] -------------------------------------------------------------------------------------------------------------------------- [INFO] BUILD FAILURE [INFO] -------------------------------------------------------------------------------------------------------------------------- [INFO] Total time: 2.041 s [INFO] Finished at: 2022-12-13T18:51:46-06:00 [INFO] -------------------------------------------------------------------------------------------------------------------------- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:3.3.0:all-profiles (default-cli) on project flowlogix: Execution default-cli of goal org.apache.maven.plugins:maven-help-plugin:3.3.0:all-profiles failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-help-plugin:3.3.0:all-profiles: java.lang.NoSuchMethodError: 'org.apache.maven.model.Profile org.apache.maven.settings.SettingsUtils.convertFromSettingsProfile(org.apache.maven.settings.Profile)' [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.apache.maven.plugins:maven-help-plugin:3.3.0 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/lprimak/.m2/repository/org/apache/maven/plugins/maven-help-plugin/3.3.0/maven-help-plugin-3.3.0.jar [ERROR] urls[1] = file:/Users/lprimak/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-generators/3.6.4/maven-plugin-tools-generators-3.6.4.jar [ERROR] urls[2] = file:/Users/lprimak/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/3.6.4/maven-plugin-tools-api-3.6.4.jar [ERROR] urls[3] = file:/Users/lprimak/.m2/repository/org/codehaus/plexus/plexus-velocity/1.2/plexus-velocity-1.2.jar [ERROR] urls[4] = file:/Users/lprimak/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar [ERROR] urls[5] = file:/Users/lprimak/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar [ERROR] urls[6] = file:/Users/lprimak/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar [ERROR] urls[7] = file:/Users/lprimak/.m2/repository/net/sf/jtidy/jtidy/r938/jtidy-r938.jar [ERROR] urls[8] = file:/Users/lprimak/.m2/repository/org/ow2/asm/asm/9.3/asm-9.3.jar [ERROR] urls[9] = file:/Users/lprimak/.m2/repository/org/ow2/asm/asm-commons/9.3/asm-commons-9.3.jar [ERROR] urls[10] = file:/Users/lprimak/.m2/repository/org/ow2/asm/asm-tree/9.3/asm-tree-9.3.jar [ERROR] urls[11] = file:/Users/lprimak/.m2/repository/org/ow2/asm/asm-analysis/9.3/asm-analysis-9.3.jar [ERROR] urls[12] = file:/Users/lprimak/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.jar [ERROR] urls[13] = file:/Users/lprimak/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar [ERROR] urls[14] = file:/Users/lprimak/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.1.1/maven-reporting-api-3.1.1.jar [ERROR] urls[15] = file:/Users/lprimak/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.11.1/doxia-sink-api-1.11.1.jar [ERROR] urls[16] = file:/Users/lprimak/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.11.1/doxia-logging-api-1.11.1.jar [ERROR] urls[17] = file:/Users/lprimak/.m2/repository/org/apache/maven/reporting/maven-reporting-exec/1.6.0/maven-reporting-exec-1.6.0.jar [ERROR] urls[18] = file:/Users/lprimak/.m2/repository/javax/enterprise/cdi-api/1.2/cdi-api-1.2.jar [ERROR] urls[19] = file:/Users/lprimak/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.5/org.eclipse.sisu.inject-0.3.5.jar [ERROR] urls[20] = file:/Users/lprimak/.m2/repository/org/sonatype/sisu/sisu-guice/3.2.3/sisu-guice-3.2.3-no_aop.jar [ERROR] urls[21] = file:/Users/lprimak/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar [ERROR] urls[22] = file:/Users/lprimak/.m2/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar [ERROR] urls[23] = file:/Users/lprimak/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar [ERROR] urls[24] = file:/Users/lprimak/.m2/repository/org/codehaus/plexus/plexus-component-annotations/2.1.1/plexus-component-annotations-2.1.1.jar [ERROR] urls[25] = file:/Users/lprimak/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar [ERROR] urls[26] = file:/Users/lprimak/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar [ERROR] urls[27] = file:/Users/lprimak/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.1/plexus-interactivity-api-1.1.jar [ERROR] urls[28] = file:/Users/lprimak/.m2/repository/org/codehaus/plexus/plexus-utils/3.4.2/plexus-utils-3.4.2.jar [ERROR] urls[29] = file:/Users/lprimak/.m2/repository/org/jdom/jdom2/2.0.6.1/jdom2-2.0.6.1.jar [ERROR] urls[30] = file:/Users/lprimak/.m2/repository/com/thoughtworks/xstream/xstream/1.4.19/xstream-1.4.19.jar [ERROR] urls[31] = file:/Users/lprimak/.m2/repository/io/github/x-stream/mxparser/1.2.2/mxparser-1.2.2.jar [ERROR] urls[32] = file:/Users/lprimak/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar [ERROR] urls[33] = file:/Users/lprimak/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[project>com.flowlogix:flowlogix:5.x-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] [ERROR] -> [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 verbose output [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/PluginContainerException
Attachments
Issue Links
- is related to
-
MNG-7625 Restore compatibility with Maven 3 - SettingsUtils#merge
- Closed