Hi,
Do you have other warnings in your build? About missing artifacts etc. ?
The class is part ofr maven-sources-plugin which is weird, cause a
single class can't be access if the plugin has been loaded...?
Check the log output of your build ...in particular start a clean
build...remove the local repository from your jenkins build...and check
the logging output carefully....usually this is caused by not correctly
downloaded or missing artifacts in corporate repository managers...
BTW: How is Maven called ? Which Maven version do you use?
Kind regards
Karl Heinz Marbaise
On 3/10/15 4:31 PM, Charles Chan wrote:
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. Does anyone know where it is coming from
and/or how to get rid of the warning?
Thank you,
Charles
-----------
I found a similar in the mailing list archive [1], but there was no answer
back then.
There is also this thread [2] on stackoverflow, but the suggestions didn't
appear work.
[1]
http://mail-archives.apache.org/mod_mbox/maven-users/201309.mbox/%3coff445bca1.9545b829-on85257bf1.004db657-85257bf1.004e0...@loomissayles.com%3E
[2]
http://stackoverflow.com/questions/28476924/maven-sourcejar-task-results-in-warnings
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]