|
Hello,
I'm trying to do some plugin development with Jenkins. Specifically I need to make some fixes to the Synergy Plugin [1] which seems largely abandoned. I wanted to try to get the plugin to build against Jenkins, not Hudson. I was following the instructions [2] and set up my settings.xml file like this: <settings> <pluginGroups> <pluginGroup>org.jenkins-ci.tools</pluginGroup> </pluginGroups> </settings> I then ran the build for the Synergy plugin, but I noticed it was pulling down Hudson to test with when I ran: mvn hpi:run I decided there must be some changes I need to make to my pom. I decided the easiest way to find that would be to make a test plugin with hpi:create, but that did not work: E:\test>mvn -cpu hpi:create [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'hpi'. [INFO] org.jenkins-ci.tools: checking for updates from central [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-hpi-plugin: checking for updates from central [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-hpi-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Thu Mar 03 09:27:21 CST 2011 [INFO] Final Memory: 1M/31M [INFO] ------------------------------------------------------------------------ I then went and looked in the Central repository [3] and it does not look like Jenkin's is being pushed. There may be a work around documented somewhere but I have not been able to find it. Any thoughts? -Jim [1] http://wiki.jenkins-ci.org/display/JENKINS/Synergy+Plugin [2] http://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial [3] http://repo1.maven.org/maven2/org/jenkins-ci |
|
Do you use the parent pom 1.399?
Ulli On 03/03/2011 04:55 PM, Jim McCaskey wrote: > Hello, > > I'm trying to do some plugin development with Jenkins. Specifically I need to make some fixes to the Synergy Plugin [1] which seems largely abandoned. > > I wanted to try to get the plugin to build against Jenkins, not Hudson. I was following the instructions [2] and set up my settings.xml file like this: > > <settings> > <pluginGroups> > <pluginGroup>org.jenkins-ci.tools</pluginGroup> > </pluginGroups> > </settings> > > I then ran the build for the Synergy plugin, but I noticed it was pulling down Hudson to test with when I ran: > > mvn hpi:run > > I decided there must be some changes I need to make to my pom. I decided the easiest way to find that would be to make a test plugin with hpi:create, but that did not work: > > E:\test>mvn -cpu hpi:create > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'hpi'. > [INFO] org.jenkins-ci.tools: checking for updates from central > [INFO] org.apache.maven.plugins: checking for updates from central > [INFO] org.codehaus.mojo: checking for updates from central > [INFO] artifact org.apache.maven.plugins:maven-hpi-plugin: checking for updates from central > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] The plugin 'org.apache.maven.plugins:maven-hpi-plugin' does not exist or no valid version could be found > [INFO] ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 2 seconds > [INFO] Finished at: Thu Mar 03 09:27:21 CST 2011 > [INFO] Final Memory: 1M/31M > [INFO] ------------------------------------------------------------------------ > > I then went and looked in the Central repository [3] and it does not look like Jenkin's is being pushed. > > There may be a work around documented somewhere but I have not been able to find it. Any thoughts? > > -Jim > > > > [1] http://wiki.jenkins-ci.org/display/JENKINS/Synergy+Plugin > [2] http://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial > [3] http://repo1.maven.org/maven2/org/jenkins-ci > > > |
|
Where would that come from?
The parent is currently pointed here: <parent> <groupId>org.jvnet.hudson.plugins</groupId> <artifactId>plugin</artifactId> <version>1.319</version> </parent> If I set it to this: <parent> <groupId>org.jvnet.hudson.plugins</groupId> <artifactId>plugin</artifactId> <version>1.399</version> </parent> I get lots of can't find parent errors which makes sense since the Central Repository [1] only has up through 1.395 (which predates Jenkin's). I think the real problem here is that the Jenkin's artifacts are not getting published to central [2]. I'm going to guess that the parent should look something like this: <parent> <groupId>org.jenkins-ci.plugins</groupId> <artifactId>plugin</artifactId> <version>1.399</version> </parent> But since those artifacts don't exist in central [2], it won't work. Is there another repo we should be looking in? -Jim [1] http://repo2.maven.org/maven2/org/jvnet/hudson/plugins/plugin/ [2] http://repo1.maven.org/maven2/org/jenkins-ci -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Ullrich Hafner Sent: Thursday, March 03, 2011 10:01 AM To: [hidden email] Subject: Re: Plugin development with Jenkins Do you use the parent pom 1.399? Ulli On 03/03/2011 04:55 PM, Jim McCaskey wrote: > Hello, > > I'm trying to do some plugin development with Jenkins. Specifically I need to make some fixes to the Synergy Plugin [1] which seems largely abandoned. > > I wanted to try to get the plugin to build against Jenkins, not Hudson. I was following the instructions [2] and set up my settings.xml file like this: > > <settings> > <pluginGroups> > <pluginGroup>org.jenkins-ci.tools</pluginGroup> > </pluginGroups> > </settings> > > I then ran the build for the Synergy plugin, but I noticed it was pulling down Hudson to test with when I ran: > > mvn hpi:run > > I decided there must be some changes I need to make to my pom. I decided the easiest way to find that would be to make a test plugin with hpi:create, but that did not work: > > E:\test>mvn -cpu hpi:create > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'hpi'. > [INFO] org.jenkins-ci.tools: checking for updates from central > [INFO] org.apache.maven.plugins: checking for updates from central > [INFO] org.codehaus.mojo: checking for updates from central > [INFO] artifact org.apache.maven.plugins:maven-hpi-plugin: checking for updates from central > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] The plugin 'org.apache.maven.plugins:maven-hpi-plugin' does not exist or no valid version could be found > [INFO] ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 2 seconds > [INFO] Finished at: Thu Mar 03 09:27:21 CST 2011 > [INFO] Final Memory: 1M/31M > [INFO] ------------------------------------------------------------------------ > > I then went and looked in the Central repository [3] and it does not look like Jenkin's is being pushed. > > There may be a work around documented somewhere but I have not been able to find it. Any thoughts? > > -Jim > > > > [1] http://wiki.jenkins-ci.org/display/JENKINS/Synergy+Plugin > [2] http://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial > [3] http://repo1.maven.org/maven2/org/jenkins-ci > > > |
|
You need to set your parent to
<parent> <groupId>org.jenkins-ci.plugins</groupId> <artifactId>plugin</artifactId> <version>1.399</version> </parent> And add the glassfish repository to your nexus instance of pom.xml: <repositories> <repository> <id>m.g.o-public</id> <url>http://maven.glassfish.org/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> BTW: I send this message in CC to dev list which seem to be more appropriate for such discussions On 03/03/2011 05:11 PM, Jim McCaskey wrote: > Where would that come from? > > The parent is currently pointed here: > > <parent> > <groupId>org.jvnet.hudson.plugins</groupId> > <artifactId>plugin</artifactId> > <version>1.319</version> > </parent> > > If I set it to this: > > <parent> > <groupId>org.jvnet.hudson.plugins</groupId> > <artifactId>plugin</artifactId> > <version>1.399</version> > </parent> > > I get lots of can't find parent errors which makes sense since the Central Repository [1] only has up through 1.395 (which predates Jenkin's). I think the real problem here is that the Jenkin's artifacts are not getting published to central [2]. I'm going to guess that the parent should look something like this: > > <parent> > <groupId>org.jenkins-ci.plugins</groupId> > <artifactId>plugin</artifactId> > <version>1.399</version> > </parent> > > But since those artifacts don't exist in central [2], it won't work. Is there another repo we should be looking in? > > -Jim > > [1] http://repo2.maven.org/maven2/org/jvnet/hudson/plugins/plugin/ > [2] http://repo1.maven.org/maven2/org/jenkins-ci > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Ullrich Hafner > Sent: Thursday, March 03, 2011 10:01 AM > To: [hidden email] > Subject: Re: Plugin development with Jenkins > > Do you use the parent pom 1.399? > > Ulli > > On 03/03/2011 04:55 PM, Jim McCaskey wrote: >> Hello, >> >> I'm trying to do some plugin development with Jenkins. Specifically I need to make some fixes to the Synergy Plugin [1] which seems largely abandoned. >> >> I wanted to try to get the plugin to build against Jenkins, not Hudson. I was following the instructions [2] and set up my settings.xml file like this: >> >> <settings> >> <pluginGroups> >> <pluginGroup>org.jenkins-ci.tools</pluginGroup> >> </pluginGroups> >> </settings> >> >> I then ran the build for the Synergy plugin, but I noticed it was pulling down Hudson to test with when I ran: >> >> mvn hpi:run >> >> I decided there must be some changes I need to make to my pom. I decided the easiest way to find that would be to make a test plugin with hpi:create, but that did not work: >> >> E:\test>mvn -cpu hpi:create >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'hpi'. >> [INFO] org.jenkins-ci.tools: checking for updates from central >> [INFO] org.apache.maven.plugins: checking for updates from central >> [INFO] org.codehaus.mojo: checking for updates from central >> [INFO] artifact org.apache.maven.plugins:maven-hpi-plugin: checking for updates from central >> [INFO] ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] ------------------------------------------------------------------------ >> [INFO] The plugin 'org.apache.maven.plugins:maven-hpi-plugin' does not exist or no valid version could be found >> [INFO] ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] ------------------------------------------------------------------------ >> [INFO] Total time: 2 seconds >> [INFO] Finished at: Thu Mar 03 09:27:21 CST 2011 >> [INFO] Final Memory: 1M/31M >> [INFO] ------------------------------------------------------------------------ >> >> I then went and looked in the Central repository [3] and it does not look like Jenkin's is being pushed. >> >> There may be a work around documented somewhere but I have not been able to find it. Any thoughts? >> >> -Jim >> >> >> >> [1] http://wiki.jenkins-ci.org/display/JENKINS/Synergy+Plugin >> [2] http://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial >> [3] http://repo1.maven.org/maven2/org/jenkins-ci >> >> >> > > |
|
I was able to setup my settings.xml like below and it worked. My guess is this should be mentioned on the Plugin tutorial [1] wiki.
(I'm not on the dev list, so I'm going to guess this is about to go boing ;) ) Thanks for the help! -Jim <settings> <pluginGroups> <pluginGroup>org.jenkins-ci.tools</pluginGroup> </pluginGroups> <activeProfiles> <activeProfile>profile-1</activeProfile> </activeProfiles> <profiles> <profile> <id>profile-1</id> <repositories> <repository> <id>m.g.o-public</id> <url>http://maven.glassfish.org/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> </profile> </profiles> </settings> [1] http://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Ullrich Hafner Sent: Thursday, March 03, 2011 10:39 AM To: [hidden email] Cc: [hidden email] Subject: Re: Plugin development with Jenkins You need to set your parent to <parent> <groupId>org.jenkins-ci.plugins</groupId> <artifactId>plugin</artifactId> <version>1.399</version> </parent> And add the glassfish repository to your nexus instance of pom.xml: <repositories> <repository> <id>m.g.o-public</id> <url>http://maven.glassfish.org/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> BTW: I send this message in CC to dev list which seem to be more appropriate for such discussions On 03/03/2011 05:11 PM, Jim McCaskey wrote: > Where would that come from? > > The parent is currently pointed here: > > <parent> > <groupId>org.jvnet.hudson.plugins</groupId> > <artifactId>plugin</artifactId> > <version>1.319</version> > </parent> > > If I set it to this: > > <parent> > <groupId>org.jvnet.hudson.plugins</groupId> > <artifactId>plugin</artifactId> > <version>1.399</version> > </parent> > > I get lots of can't find parent errors which makes sense since the Central Repository [1] only has up through 1.395 (which predates Jenkin's). I think the real problem here is that the Jenkin's artifacts are not getting published to central [2]. I'm going to guess that the parent should look something like this: > > <parent> > <groupId>org.jenkins-ci.plugins</groupId> > <artifactId>plugin</artifactId> > <version>1.399</version> > </parent> > > But since those artifacts don't exist in central [2], it won't work. Is there another repo we should be looking in? > > -Jim > > [1] http://repo2.maven.org/maven2/org/jvnet/hudson/plugins/plugin/ > [2] http://repo1.maven.org/maven2/org/jenkins-ci > > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Ullrich Hafner > Sent: Thursday, March 03, 2011 10:01 AM > To: [hidden email] > Subject: Re: Plugin development with Jenkins > > Do you use the parent pom 1.399? > > Ulli > > On 03/03/2011 04:55 PM, Jim McCaskey wrote: >> Hello, >> >> I'm trying to do some plugin development with Jenkins. Specifically I need to make some fixes to the Synergy Plugin [1] which seems largely abandoned. >> >> I wanted to try to get the plugin to build against Jenkins, not Hudson. I was following the instructions [2] and set up my settings.xml file like this: >> >> <settings> >> <pluginGroups> >> <pluginGroup>org.jenkins-ci.tools</pluginGroup> >> </pluginGroups> >> </settings> >> >> I then ran the build for the Synergy plugin, but I noticed it was pulling down Hudson to test with when I ran: >> >> mvn hpi:run >> >> I decided there must be some changes I need to make to my pom. I decided the easiest way to find that would be to make a test plugin with hpi:create, but that did not work: >> >> E:\test>mvn -cpu hpi:create >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'hpi'. >> [INFO] org.jenkins-ci.tools: checking for updates from central >> [INFO] org.apache.maven.plugins: checking for updates from central >> [INFO] org.codehaus.mojo: checking for updates from central >> [INFO] artifact org.apache.maven.plugins:maven-hpi-plugin: checking for updates from central >> [INFO] ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] ------------------------------------------------------------------------ >> [INFO] The plugin 'org.apache.maven.plugins:maven-hpi-plugin' does not exist or no valid version could be found >> [INFO] ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] ------------------------------------------------------------------------ >> [INFO] Total time: 2 seconds >> [INFO] Finished at: Thu Mar 03 09:27:21 CST 2011 >> [INFO] Final Memory: 1M/31M >> [INFO] ------------------------------------------------------------------------ >> >> I then went and looked in the Central repository [3] and it does not look like Jenkin's is being pushed. >> >> There may be a work around documented somewhere but I have not been able to find it. Any thoughts? >> >> -Jim >> >> >> >> [1] http://wiki.jenkins-ci.org/display/JENKINS/Synergy+Plugin >> [2] http://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial >> [3] http://repo1.maven.org/maven2/org/jenkins-ci >> >> >> > > |
|
I'm having the same problem and added this glassfish repository, but it seems to be down? Is there a new repository where jenkins artifacts are being published?
Thanks, Aaron
On Thu, Mar 3, 2011 at 11:57 AM, Jim McCaskey <[hidden email]> wrote: I was able to setup my settings.xml like below and it worked. My guess is this should be mentioned on the Plugin tutorial [1] wiki. |
|
Found the answer.. latest comment (Mar 7) @ http://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial
On Thu, Mar 10, 2011 at 12:04 AM, Aaron Phillips <[hidden email]> wrote: I'm having the same problem and added this glassfish repository, but it seems to be down? Is there a new repository where jenkins artifacts are being published? |
| Powered by Nabble | Edit this page |
