Problem when building a SCM plugin in Jenkins maven project

29 views
Skip to first unread message

Luis

unread,
Sep 1, 2014, 4:49:58 AM9/1/14
to jenkin...@googlegroups.com
Hi, there:

I've recently made changes in the plasticscm plugin for jenkins and after pulling the changes and triggered the build, I got the following error:

java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory

See log here:
https://jenkins.ci.cloudbees.com/job/plugins/job/plasticscm-plugin/2/console

Y found somewhere (https://groups.google.com/forum/#!searchin/jenkinsci-dev/java.lang.NoClassDefFoundError$3A$20com$2Fsun$2Fmirror$2Fapt$2FAnnotationProcessorFactory|sort:relevance/jenkinsci-dev/Y466cf9NaEc/rUp9oHvQzrQJ) that this could be due to the parent label of the pom.xml, so I updated it to something newer, but then I get the following errors:

Non-resolvable parent POM: Could not find artifact org.jvnet.hudson.plugins:plugin:pom:1.420 in repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/) and 'parent.relativePath' points at wrong local POM


Full log here:
https://jenkins.ci.cloudbees.com/job/plugins/job/plasticscm-plugin/4/console


How could I fix this problem?

Thanks,
Luis


Vincent Latombe

unread,
Sep 1, 2014, 5:57:38 AM9/1/14
to Jenkins Dev
Hi Luis,

the groupId has changed, it is now 'org.jenkins-ci.plugins'

Vincent


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luis Rodriguez

unread,
Sep 1, 2014, 6:32:26 AM9/1/14
to jenkin...@googlegroups.com
Ok, thanks, that worked fine!!

Now, what's the next steps in order to get my changes integrated and available from Jenkins? Are these instructions (under "Releasing to jenkins-ci.org" section) still up-to-date?
https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins

Thanks!




--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/1-jb5R0ZwDM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
                Luis Rodríguez Neches
                 Ingeniero en Informática
http://luixrodriguezneches.wordpress.com/

Vincent Latombe

unread,
Sep 1, 2014, 7:39:12 AM9/1/14
to Jenkins Dev
Instructions are up-to-date (as far as I can see), make sure to check the warnings if you use git > 1.8.5
Once you release, it take about one day to be visible through the update center.

Vincent

Luis Rodriguez

unread,
Sep 1, 2014, 12:17:53 PM9/1/14
to jenkin...@googlegroups.com
When running the command:
$ mvn release:prepare release:perform -Dusername=... -Dpassword=...

I get the following error:

[ERROR] Unresolveable build extension: Plugin org.jenkins-ci.tools:maven-hpi-plugin:1.72 or one of its dependencies could not be resolved: Failed to collect dependencies for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.72 () @
[ERROR] for project org.jenkins-ci.plugins:plugin:1.420


I tried this adding the "version" field for the maven-release-plugin artifact:
              <version>1.72</version>

But then I got an error when unzipping the jar. So, I tried a different version (2.0) that I had in the same directory, but it yells again about the same issue as above.

I'm a newbie in maven, so what's the correct version I have to specify? Am I missing something else?

Thanks,


Reply all
Reply to author
Forward
0 new messages