-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins v.1565.3
Maven project plugin v2.8
We have a Maven project using the maven-source-plugin. When building the
project on Jenkins, it shows the following warning:
[INFO] *--- maven-jar-plugin:2.4:jar (default-jar) @ test-project --- *[INFO] Building jar: /home/jenkins/workspace/test-project/target/test-project-1.0.0-SNAPSHOT.jar[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
I tested with maven-source-plugin 2.2.1, 2.3, and 2.4 and all of these
versions exhibit the same problem.
The problem does not appear if the project was compiled from NetBeans or command line.
(Initially, I thought this was a Maven issue, therefore I started a thread at the Maven user's mailing list:
http://maven-users.markmail.org/thread/jd74vnjnzfoef55e#query:+page:1+mid:no3jnbfgji2x63wj+state:results)
The error message appears to originate from ExecutedMojo, but I am not sure the cause.
https://github.com/jenkinsci/maven-plugin/blob/1b30d831d13ce8dce87d2b557ab3a255f0aea1fd/src/main/java/hudson/maven/ExecutedMojo.java#L110