I'm part of a team that is updating several projects from Maven 2 to Maven 3. We are also migrating to Jenkins(from Continuum) as our Ci. We are having problems with Maven plugin dependencies.
Jenkins doesn't pull in dependent plugins on projects. Example: Site reports fails due to lack of the resources plugin.
Is there a way to make Jenkins maven plugin pull in dependencies for Maven plugins? Failing that, is there a Maven option to verify pom correctness of Maven plugins?
Updated with build log below:
[INFO] --- maven-jgit-buildnumber-plugin:1.2.7:extract-buildnumber (jgit-buildnumber) # form-letters-api ---
[INFO] Cannot extract Git info, maybe custom build with 'pl' argument is running
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # form-letters-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jboss/jenkins/workspace/formletters/form-letters-api/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # form-letters-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to /home/jboss/jenkins/workspace/formletters/form-letters-api/target/classes
[INFO]
[INFO] <<< findbugs-maven-plugin:2.3:findbugs < compile # form-letters-api <<<
[INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Form Letters and Templates Manager ................. SUCCESS [ 11.274 s]
[INFO] API:: Form Letters ................................. FAILURE [ 8.178 s]
[INFO] Webapp:: Form Letters .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.942 s
[INFO] Finished at: 2015-09-23T14:57:23-04:00
[INFO] Final Memory: 54M/697M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project form-letters-api: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.4:site failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-site-plugin:3.4:site: java.lang.AbstractMethodError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-site-plugin:3.4--627884439
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/opt/maven/.m2/repository/org/apache/maven/plugins/maven-site-plugin/3.4/maven-site-plugin-3.4.jar
[ERROR] urls[1] = file:/opt/maven/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[2] = file:/opt/maven/.m2/repository/org/apache/maven/wagon/wagon-webdav-jackrabbit/2.6/wagon-webdav-jackrabbit-2.6.jar
[ERROR] urls[3] = file:/opt/maven/.m2/repository/org/apache/jackrabbit/jackrabbit-webdav/2.5.2/jackrabbit-webdav-2.5.2.jar
[ERROR] urls[4] = file:/opt/maven/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.4/jcl-over-slf4j-1.6.4.jar
[ERROR] urls[5] = file:/opt/maven/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
[ERROR] urls[6] = file:/opt/maven/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
[ERROR] urls[7] = file:/opt/maven/.m2/repository/org/apache/maven/reporting/maven-reporting-exec/1.2/maven-reporting-exec-1.2.jar
[ERROR] urls[8] = file:/opt/maven/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
[ERROR] urls[9] = file:/opt/maven/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.3/maven-shared-utils-0.3.jar
[ERROR] urls[10] = file:/opt/maven/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
[ERROR] urls[11] = file:/opt/maven/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[12] = file:/opt/maven/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[13] = file:/opt/maven/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[14] = file:/opt/maven/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[15] = file:/opt/maven/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[16] = file:/opt/maven/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[17] = file:/opt/maven/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[18] = file:/opt/maven/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[19] = file:/opt/maven/.m2/repository/org/apache/maven/maven-archiver/2.4.2/maven-archiver-2.4.2.jar
[ERROR] urls[20] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.6/doxia-sink-api-1.6.jar
[ERROR] urls[21] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.6/doxia-logging-api-1.6.jar
[ERROR] urls[22] = file:/opt/maven/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[23] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-core/1.6/doxia-core-1.6.jar
[ERROR] urls[24] = file:/opt/maven/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
[ERROR] urls[25] = file:/opt/maven/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar
[ERROR] urls[26] = file:/opt/maven/.m2/repository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar
[ERROR] urls[27] = file:/opt/maven/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[28] = file:/opt/maven/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
[ERROR] urls[29] = file:/opt/maven/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5.jar
[ERROR] urls[30] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.6/doxia-module-xhtml-1.6.jar
[ERROR] urls[31] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.6/doxia-module-apt-1.6.jar
[ERROR] urls[32] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.6/doxia-module-xdoc-1.6.jar
[ERROR] urls[33] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.6/doxia-module-fml-1.6.jar
[ERROR] urls[34] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-module-markdown/1.6/doxia-module-markdown-1.6.jar
[ERROR] urls[35] = file:/opt/maven/.m2/repository/org/pegdown/pegdown/1.2.1/pegdown-1.2.1.jar
[ERROR] urls[36] = file:/opt/maven/.m2/repository/org/parboiled/parboiled-java/1.1.4/parboiled-java-1.1.4.jar
[ERROR] urls[37] = file:/opt/maven/.m2/repository/org/parboiled/parboiled-core/1.1.4/parboiled-core-1.1.4.jar
[ERROR] urls[38] = file:/opt/maven/.m2/repository/org/ow2/asm/asm/4.1/asm-4.1.jar
[ERROR] urls[39] = file:/opt/maven/.m2/repository/org/ow2/asm/asm-tree/4.1/asm-tree-4.1.jar
[ERROR] urls[40] = file:/opt/maven/.m2/repository/org/ow2/asm/asm-analysis/4.1/asm-analysis-4.1.jar
[ERROR] urls[41] = file:/opt/maven/.m2/repository/org/ow2/asm/asm-util/4.1/asm-util-4.1.jar
[ERROR] urls[42] = file:/opt/maven/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[ERROR] urls[43] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.6/doxia-decoration-model-1.6.jar
[ERROR] urls[44] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.6/doxia-site-renderer-1.6.jar
[ERROR] urls[45] = file:/opt/maven/.m2/repository/org/apache/velocity/velocity-tools/2.0/velocity-tools-2.0.jar
[ERROR] urls[46] = file:/opt/maven/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
[ERROR] urls[47] = file:/opt/maven/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
[ERROR] urls[48] = file:/opt/maven/.m2/repository/commons-chain/commons-chain/1.1/commons-chain-1.1.jar
[ERROR] urls[49] = file:/opt/maven/.m2/repository/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar
[ERROR] urls[50] = file:/opt/maven/.m2/repository/dom4j/dom4j/1.1/dom4j-1.1.jar
[ERROR] urls[51] = file:/opt/maven/.m2/repository/sslext/sslext/1.2-0/sslext-1.2-0.jar
[ERROR] urls[52] = file:/opt/maven/.m2/repository/org/apache/struts/struts-core/1.3.8/struts-core-1.3.8.jar
[ERROR] urls[53] = file:/opt/maven/.m2/repository/antlr/antlr/2.7.2/antlr-2.7.2.jar
[ERROR] urls[54] = file:/opt/maven/.m2/repository/org/apache/struts/struts-taglib/1.3.8/struts-taglib-1.3.8.jar
[ERROR] urls[55] = file:/opt/maven/.m2/repository/org/apache/struts/struts-tiles/1.3.8/struts-tiles-1.3.8.jar
[ERROR] urls[56] = file:/opt/maven/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[57] = file:/opt/maven/.m2/repository/org/apache/maven/doxia/doxia-integration-tools/1.6/doxia-integration-tools-1.6.jar
[ERROR] urls[58] = file:/opt/maven/.m2/repository/org/codehaus/plexus/plexus-archiver/2.4.3/plexus-archiver-2.4.3.jar
[ERROR] urls[59] = file:/opt/maven/.m2/repository/org/codehaus/plexus/plexus-io/2.0.8/plexus-io-2.0.8.jar
[ERROR] urls[60] = file:/opt/maven/.m2/repository/org/apache/commons/commons-compress/1.5/commons-compress-1.5.jar
[ERROR] urls[61] = file:/opt/maven/.m2/repository/org/tukaani/xz/1.2/xz-1.2.jar
[ERROR] urls[62] = file:/opt/maven/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
[ERROR] urls[63] = file:/opt/maven/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[64] = file:/opt/maven/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[65] = file:/opt/maven/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
[ERROR] urls[66] = file:/opt/maven/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar
[ERROR] urls[67] = file:/opt/maven/.m2/repository/org/mortbay/jetty/jetty/6.1.25/jetty-6.1.25.jar
[ERROR] urls[68] = file:/opt/maven/.m2/repository/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar
[ERROR] urls[69] = file:/opt/maven/.m2/repository/org/mortbay/jetty/jetty-util/6.1.25/jetty-util-6.1.25.jar
[ERROR] urls[70] = file:/opt/maven/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[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 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/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
Related
I have encountered the following error and would like to know what the cause of the error is and how the problem can be resolved.
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:war (default-war) on project Project: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.3:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.3' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null
-----------------------------------------------------
realm = plugin>org.apache.maven.plugins:maven-war-plugin:2.3
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/apache/maven/plugins/maven-war-plugin/2.3/maven-war-plugin-2.3.jar
urls[1] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
urls[2] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
urls[3] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
urls[4] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
urls[5] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar
urls[6] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/codehaus/plexus/plexus-io/2.0.5/plexus-io-2.0.5.jar
urls[7] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/codehaus/plexus/plexus-archiver/2.2/plexus-archiver-2.2.jar
urls[8] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.15/plexus-interpolation-1.15.jar
urls[9] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[10] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/com/thoughtworks/xstream/xstream/1.4.3/xstream-1.4.3.jar
urls[11] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar
urls[12] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar
urls[13] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.8/plexus-utils-3.0.8.jar
urls[14] = file:/C:/Users/Ram%20Ishwer%20Kumar/.m2/repository/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar
Number of foreign imports: 1
import: Entry[import from realm ClassRealm[maven.api, parent: null]]
-----------------------------------------------------
: ExceptionInInitializerError: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module #3fe512d2
-> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
I'm suddenly seeing a CI Maven build failing with something like this:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project CheckoutMs: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile: java.lang.NoSuchMethodError: org.codehaus.plexus.compiler.CompilerConfiguration.isParameters()Z
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.6.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/jenkins/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.6.1/maven-compiler-plugin-3.6.1.jar
[ERROR] urls[1] = file:/home/jenkins/.m2/repository/org/codehaus/groovy/groovy-eclipse-compiler/3.3.0-01/groovy-eclipse-compiler-3.3.0-01.jar
[ERROR] urls[2] = file:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
[ERROR] urls[3] = file:/home/jenkins/.m2/repository/org/apache/xbean/xbean-reflect/3.7/xbean-reflect-3.7.jar
[ERROR] urls[4] = file:/home/jenkins/.m2/repository/com/google/collections/google-collections/1.0/google-collections-1.0.jar
[ERROR] urls[5] = file:/home/jenkins/.m2/repository/org/codehaus/groovy/groovy-eclipse-batch/2.5.5-01/groovy-eclipse-batch-2.5.5-01.jar
[ERROR] urls[6] = file:/home/jenkins/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[7] = file:/home/jenkins/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[8] = file:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.4/plexus-utils-2.0.4.jar
[ERROR] urls[9] = file:/home/jenkins/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[10] = file:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[11] = file:/home/jenkins/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[12] = file:/home/jenkins/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[13] = file:/home/jenkins/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
[ERROR] urls[14] = file:/home/jenkins/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
[ERROR] urls[15] = file:/home/jenkins/.m2/repository/org/apache/maven/shared/maven-shared-incremental/1.1/maven-shared-incremental-1.1.jar
[ERROR] urls[16] = file:/home/jenkins/.m2/repository/org/ow2/asm/asm/6.0_ALPHA/asm-6.0_ALPHA.jar
[ERROR] urls[17] = file:/home/jenkins/.m2/repository/com/thoughtworks/qdox/qdox/2.0-M5/qdox-2.0-M5.jar
[ERROR] urls[18] = file:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-compiler-api/2.8.1/plexus-compiler-api-2.8.1.jar
[ERROR] urls[19] = file:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/2.8.1/plexus-compiler-manager-2.8.1.jar
[ERROR] urls[20] = file:/home/jenkins/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/2.8.1/plexus-compiler-javac-2.8.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
From some analysis, I can see that the "isParameters" method is available in version 2.8.3 of the plexus-compiler-api, but not in 2.8.1, which is being used here. This is not a dependency, direct or indirect, of the project being built.
This error is repeatable in the project where it's happening. It started happening at 2 minutes after midnight starting on 1/26. The previous build of this, which ran 6 minutes before that, on the previous day, did not see this symptom.
I also looked at the git commit ids of every repository pulled from for this build, and they are identical between the last successful build and this first (and continuing) failure.
This means that something must have changed in the infrastructure. I don't maintain that. A different team does. What I'd like to get from this posting is any clues I can pass on about what might have changed that could have caused this.
This is caused by plexus-compiler-eclipse not properly resolving its dependency on plexus-compiler-api. Not sure why - here's its pom.xml.
It's currently resolving the version of that dependency via the Maven Compiler Plugin, which is why updating it to latest e.g.:
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
fixes the dependency, e.g. it will cause:
< [INFO] org.codehaus.plexus:plexus-compiler-api:jar:2.8.1
< [INFO] org.codehaus.plexus:plexus-compiler-manager:jar:2.8.1
< [INFO] org.codehaus.plexus:plexus-compiler-javac:jar:2.8.1
---
> [INFO] org.codehaus.plexus:plexus-compiler-api:jar:2.8.4
> [INFO] org.codehaus.plexus:plexus-compiler-manager:jar:2.8.4
> [INFO] org.codehaus.plexus:plexus-compiler-javac:jar:2.8.4
The API change that causes the issue was introduced in this commit, first released in the plugin 2.8.2, which is why referencing latest e.g 2.8.6 without triggering the API dependency transitively via maven-compiler-plugin latest causes this problem.
FYI openjdk17
NoSucMethodError: 'void org.codehaus.plexus.compiler.eclipse.EclipseJavaCompiler.logCompiling
<plexus.version>2.13.0</plexus.version>
<compiler.version>3.10.1</compiler.version>
Use 2.12.1
When building Kuali Student from https://github.com/kuali-student/ks-development using the command mvn -skipTests=true -Dmaven.failsafe.skip=true clean install I recieve the following error:
[INFO] Reactor Summary:
[INFO]
[INFO] KS DB .............................................. SUCCESS [ 7.816 s]
[INFO] KS DB Validation ................................... SUCCESS [ 0.573 s]
[INFO] KS Impex ........................................... SUCCESS [ 0.080 s]
[INFO] KS LUM Rice ........................................ SUCCESS [ 6.436 s]
[INFO] KS LUM UI Common ................................... SUCCESS [ 1.885 s]
[INFO] KS LUM Program ..................................... SUCCESS [ 1.785 s]
[INFO] KS LUM UI .......................................... SUCCESS [ 2.505 s]
[INFO] KS Enroll UI ....................................... FAILURE [ 0.502 s]
[INFO] KS CM KRAD ......................................... SKIPPED
[INFO] KS Security ........................................ SKIPPED
[INFO] KS Standard Security ............................... SKIPPED
[INFO] KS Security Token Service .......................... SKIPPED
[INFO] KS Common Kitchen Sink ............................. SKIPPED
[INFO] KS Common Web ...................................... SKIPPED
[INFO] KS Curriculum Management Deployment Resources ...... SKIPPED
[INFO] KS Enroll Deployment Resources ..................... SKIPPED
[INFO] KS Enroll Rice ..................................... SKIPPED
[INFO] KS Web ............................................. SKIPPED
[INFO] KS with Rice Bundled ............................... SKIPPED
[INFO] KS with Rice Embedded .............................. SKIPPED
[INFO] KS Rice Standalone ................................. SKIPPED
[INFO] KS Metro ........................................... SKIPPED
[INFO] KS Eclipselink Pom ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.640 s
[INFO] Finished at: 2015-11-04T08:15:37-10:00
[INFO] Final Memory: 148M/850M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.16:install-node-and-npm (install node and npm) on project ks-enroll-ui: Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:0.0.16:install-node-and-npm failed: A required class was missing while executing com.github.eirslett:frontend-maven-plugin:0.0.16:install-node-and-npm: org/slf4j/helpers/MarkerIgnoringBase
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.github.eirslett:frontend-maven-plugin:0.0.16
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/j/m2/ks-development/com/github/eirslett/frontend-maven-plugin/0.0.16/frontend-maven-plugin-0.0.16.jar
[ERROR] urls[1] = file:/j/m2/ks-development/com/github/eirslett/frontend-plugin-core/0.0.16/frontend-plugin-core-0.0.16.jar
[ERROR] urls[2] = file:/j/m2/ks-development/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar
[ERROR] urls[3] = file:/j/m2/ks-development/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar
[ERROR] urls[4] = file:/j/m2/ks-development/org/apache/commons/commons-compress/1.5/commons-compress-1.5.jar
[ERROR] urls[5] = file:/j/m2/ks-development/org/tukaani/xz/1.2/xz-1.2.jar
[ERROR] urls[6] = file:/j/m2/ks-development/commons-io/commons-io/1.3.2/commons-io-1.3.2.jar
[ERROR] urls[7] = file:/j/m2/ks-development/org/apache/httpcomponents/httpclient/4.3.1/httpclient-4.3.1.jar
[ERROR] urls[8] = file:/j/m2/ks-development/org/apache/httpcomponents/httpcore/4.3/httpcore-4.3.jar
[ERROR] urls[9] = file:/j/m2/ks-development/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
[ERROR] urls[10] = file:/j/m2/ks-development/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ERROR] urls[11] = file:/j/m2/ks-development/org/codehaus/plexus/plexus-utils/3.0.10/plexus-utils-3.0.10.jar
[ERROR] urls[12] = file:/j/m2/ks-development/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[13] = file:/j/m2/ks-development/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
[ERROR] urls[14] = file:/j/m2/ks-development/com/google/guava/guava/10.0.1/guava-10.0.1.jar
[ERROR] urls[15] = file:/j/m2/ks-development/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
[ERROR] urls[16] = file:/j/m2/ks-development/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[17] = file:/j/m2/ks-development/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[18] = file:/j/m2/ks-development/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M2a/org.eclipse.sisu.inject-0.0.0.M2a.jar
[ERROR] urls[19] = file:/j/m2/ks-development/asm/asm/3.3.1/asm-3.3.1.jar
[ERROR] urls[20] = file:/j/m2/ks-development/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[21] = file:/j/m2/ks-development/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar
[ERROR] urls[22] = file:/j/m2/ks-development/com/googlecode/slf4j-maven-plugin-log/slf4j-maven-plugin-log/1.0.0/slf4j-maven-plugin-log-1.0.0.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>org.kuali.student:student:2.1.1-FR2-M1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------: org.slf4j.helpers.MarkerIgnoringBase
...
Appears to be related to https://issues.apache.org/jira/browse/MNG-5787 which has been fixed for Maven 3.3.8 (not yet released at the time of this writting). One of the comments suggests using Maven 3.2.5 as a work around which resolved this error for me.
I'm using Jenkins 1.579 , SonarQube 4.4 , sonar plugin 2.1. Tried with maven 3.1.1 , 3.2.1 , .3.2.2.
This is the error:
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default- cli) on project at-tracking: Execution default-cli of goal org.codehaus.mojo:sonar-maven- plugin:2.0:sonar failed: A required class was missing while executing org.codehaus.mojo:sonar-maven-plugin:2.0:sonar: org/sonatype/aether/graph/DependencyFilter
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.codehaus.mojo:sonar-maven-plugin:2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/var/lib/jenkins/.m2/repository/org/codehaus/mojo/sonar-maven- plugin/2.0/sonar-maven-plugin-2.0.jar
[ERROR] urls[1] = file:/var/lib/jenkins/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[2] = file:/var/lib/jenkins/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[3] = file:/var/lib/jenkins/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[4] = file:/var/lib/jenkins/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[5] = file:/var/lib/jenkins/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[6] = file:/var/lib/jenkins/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[7] = file:/var/lib/jenkins/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[8] = file:/var/lib/jenkins/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.4/plexus-utils-2.0.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.sonatype.aether.graph.DependencyFilter
Thank you
resolved:
add in jenkins -> plugin manager -> sonar -> advanced -> Version of sonar-maven-plugin -> add 2.4
I have just spent the better part of an afternoon trying to solve this Maven problem with the Jetty plugin telling me that it wouldn't run because the SLF4J dependencies had an incompatible API for MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple
[INFO] --- jetty-maven-plugin:9.0.4.v20130625:run (start-jetty-before-integration-tests) # scala-spring-hibernate-maven-webapp ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.167s
[INFO] Finished at: Wed Jul 31 16:23:57 EST 2013
[INFO] Final Memory: 12M/30M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.0.4.v20130625:run (start-jetty-before-integration-tests) on project scala-spring-hibernate-maven-webapp: Execution start-jetty-before-integration-tests of goal org.eclipse.jetty:jetty-maven-plugin:9.0.4.v20130625:run failed: Unable to load the mojo 'run' in the plugin 'org.eclipse.jetty:jetty-maven-plugin:9.0.4.v20130625' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.eclipse.jetty:jetty-maven-plugin:9.0.4.v20130625
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-maven-plugin/9.0.4.v20130625/jetty-maven-plugin-9.0.4.v20130625.jar
[ERROR] urls[1] = file:/Users/graham/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar
[ERROR] urls[2] = file:/Users/graham/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar
[ERROR] urls[3] = file:/Users/graham/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar
[ERROR] urls[4] = file:/Users/graham/.m2/repository/org/sonatype/aether/aether-util/1.11/aether-util-1.11.jar
[ERROR] urls[5] = file:/Users/graham/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[6] = file:/Users/graham/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[7] = file:/Users/graham/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[8] = file:/Users/graham/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[9] = file:/Users/graham/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/3.1/maven-plugin-tools-api-3.1.jar
[ERROR] urls[10] = file:/Users/graham/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[11] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-util/9.0.4.v20130625/jetty-util-9.0.4.v20130625.jar
[ERROR] urls[12] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-webapp/9.0.4.v20130625/jetty-webapp-9.0.4.v20130625.jar
[ERROR] urls[13] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-xml/9.0.4.v20130625/jetty-xml-9.0.4.v20130625.jar
[ERROR] urls[14] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-servlet/9.0.4.v20130625/jetty-servlet-9.0.4.v20130625.jar
[ERROR] urls[15] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-jaas/9.0.4.v20130625/jetty-jaas-9.0.4.v20130625.jar
[ERROR] urls[16] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-security/9.0.4.v20130625/jetty-security-9.0.4.v20130625.jar
[ERROR] urls[17] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-plus/9.0.4.v20130625/jetty-plus-9.0.4.v20130625.jar
[ERROR] urls[18] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/javax.transaction/1.1.1.v201105210645/javax.transaction-1.1.1.v201105210645.jar
[ERROR] urls[19] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-jndi/9.0.4.v20130625/jetty-jndi-9.0.4.v20130625.jar
[ERROR] urls[20] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/javax.mail.glassfish/1.4.1.v201005082020/javax.mail.glassfish-1.4.1.v201005082020.jar
[ERROR] urls[21] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/javax.activation/1.1.0.v201105071233/javax.activation-1.1.0.v201105071233.jar
[ERROR] urls[22] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-server/9.0.4.v20130625/jetty-server-9.0.4.v20130625.jar
[ERROR] urls[23] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar
[ERROR] urls[24] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-http/9.0.4.v20130625/jetty-http-9.0.4.v20130625.jar
[ERROR] urls[25] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-io/9.0.4.v20130625/jetty-io-9.0.4.v20130625.jar
[ERROR] urls[26] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-jmx/9.0.4.v20130625/jetty-jmx-9.0.4.v20130625.jar
[ERROR] urls[27] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-annotations/9.0.4.v20130625/jetty-annotations-9.0.4.v20130625.jar
[ERROR] urls[28] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/javax.annotation/1.1.0.v201108011116/javax.annotation-1.1.0.v201108011116.jar
[ERROR] urls[29] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/org.objectweb.asm/3.1.0.v200803061910/org.objectweb.asm-3.1.0.v200803061910.jar
[ERROR] urls[30] = file:/Users/graham/.m2/repository/org/eclipse/jetty/websocket/websocket-server/9.0.4.v20130625/websocket-server-9.0.4.v20130625.jar
[ERROR] urls[31] = file:/Users/graham/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.0.4.v20130625/websocket-common-9.0.4.v20130625.jar
[ERROR] urls[32] = file:/Users/graham/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.0.4.v20130625/websocket-api-9.0.4.v20130625.jar
[ERROR] urls[33] = file:/Users/graham/.m2/repository/org/eclipse/jetty/websocket/websocket-client/9.0.4.v20130625/websocket-client-9.0.4.v20130625.jar
[ERROR] urls[34] = file:/Users/graham/.m2/repository/org/eclipse/jetty/websocket/websocket-servlet/9.0.4.v20130625/websocket-servlet-9.0.4.v20130625.jar
[ERROR] urls[35] = file:/Users/graham/.m2/repository/org/eclipse/jetty/jetty-jsp/9.0.4.v20130625/jetty-jsp-9.0.4.v20130625.jar
[ERROR] urls[36] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/javax.servlet.jsp/2.2.0.v201112011158/javax.servlet.jsp-2.2.0.v201112011158.jar
[ERROR] urls[37] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/org.apache.jasper.glassfish/2.2.2.v201112011158/org.apache.jasper.glassfish-2.2.2.v201112011158.jar
[ERROR] urls[38] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/javax.servlet.jsp.jstl/1.2.0.v201105211821/javax.servlet.jsp.jstl-1.2.0.v201105211821.jar
[ERROR] urls[39] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/org.apache.taglibs.standard.glassfish/1.2.0.v201112081803/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar
[ERROR] urls[40] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/javax.el/2.2.0.v201303151357/javax.el-2.2.0.v201303151357.jar
[ERROR] urls[41] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/com.sun.el/2.2.0.v201303151357/com.sun.el-2.2.0.v201303151357.jar
[ERROR] urls[42] = file:/Users/graham/.m2/repository/org/eclipse/jetty/orbit/org.eclipse.jdt.core/3.8.2.v20130121/org.eclipse.jdt.core-3.8.2.v20130121.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[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 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/PluginContainerException
It eventually occurred to me to look in the lib/ext directory of the JDK (on Mac, the equivalent directories are /Library/Java/Extensions and $HOME/Library/Java/Extensions) and, lo and behold, there was a version of SLF4J in there, along with a bunch of other stuff. Removing the SLF4J jars got my build working normally again.
(Note: I have had the ATO's AUSKey software deposit things in the lib/ext directory before, which is why I thought to look there. I haven't yet checked to see whether AUSKey will still work after I removed SLF4J from the directory.)