m.g.o-public -> repo.jenkins-ci.org/public

597 views
Skip to first unread message

Kohsuke Kawaguchi

unread,
Feb 29, 2012, 10:11:12 PM2/29/12
to jenkin...@googlegroups.com

We've been using http://maven.glassfish.org/ for resolving all the
artifacts for building core and plugins. But it has been down for the
past two days and we have no ETA.

So I propose we switch to http://repo.jenkins-ci.org/public.


This issue was raised several times in the past that we rely on a 3rd
party repository we have on control over. It was simply an inertia from
earlier days when I was in the Glassfish team (and even had the physical
access to the system!), and the migration never really came high enough
in the priority list, until this outage.

http://repo.jenkins-ci.org/ is a hosted Artifactory, operated by JFrog.
They kindly let us use their service for free (thanks JFrog!) It was
started several weeks ago after a discussion in the project meeting, and
the original motivation was to migrate from self-managed
http://maven.jenkins-ci.org/

That migration work is still in the proof-of-concept phase, and more on
that in the upcoming project meeting, but in the mean time, we can and
we should fast-track maven.glassfish.org migration since it has a bigger
impact on our development.

The core and super POM have already been modified to use this new
repository, and it works well. The plugin parent POM will have this new
location starting 1.453, but if you depend on earlier parent POMs, you
can specify the following fragment in your plugin POM to make this resolve:

<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>


Also, adding the following fragment to your ~/.m2/settings.xml will make
your Maven use the new repository whenever m.g.o-public is referenced.

<settings>
<mirrors>
<mirror>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
<mirrorOf>m.g.o-public</mirrorOf>
</mirror>

This time, we are using the *.jenkins-ci.org URL. Even if JFrog goes
belly up tomorrow, we just need to make a few DNS/redirect adjustments
to be able to keep this new URL working. So this should be the last time
we need to make this kind of migration.

--
Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/
Try Nectar, our professional version of Jenkins

cactusman

unread,
Feb 29, 2012, 11:23:09 PM2/29/12
to jenkin...@googlegroups.com
If jenkins/pom.xml was changed to repo.jenkins-ci.org from
m.g.o-public, building jenkins was success.

thx kohsuke!


2012/3/1 Kohsuke Kawaguchi <kkawa...@cloudbees.com>:

--
cactusman

Ullrich Hafner

unread,
Mar 1, 2012, 4:41:48 AM3/1/12
to jenkin...@googlegroups.com
Does that mean we should release plug-ins to repo.jenkins-ci.org instead
of maven.jenkins-ci.org now?

Ulli

Coutemeier

unread,
Mar 1, 2012, 5:27:22 AM3/1/12
to Jenkins Developers
Sorry, but it doesn't works for my plugin.

My plugin is based on 1.436.

My settings.xml is:


<pluginGroups>
<pluginGroup>org.jenkins-ci.tools</pluginGroup>
</pluginGroups>
<mirrors>
<mirror>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
<mirrorOf>m.g.o-public</mirrorOf>
</mirror>
</mirrors>
<profiles>
<!-- Give access to Jenkins plugins -->
<profile>
<id>jenkins</id>
<activation>
<activeByDefault>true</activeByDefault> <!-- change this to false,
if you don't like to have it on per default -->
</activation>
<repositories>
<repository>
<id>maven.jenkins-ci.org</id>
<url>http://maven.jenkins-ci.org/content/groups/artifacts/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>maven.jenkins-ci.org</id>
<url>http://maven.jenkins-ci.org/content/groups/artifacts/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

And my pom.xml has the repositories:

<repositories>
<repository>
<id>m.g.o-public</id>
<url>http://maven.glassfish.org/content/groups/public/</url>
</repository>
<repository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>m.g.o-public</id>
<url>http://maven.glassfish.org/content/groups/public/</url>
</pluginRepository>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>

Is anything wrong with my configuration?

On 1 mar, 04:11, Kohsuke Kawaguchi <kkawagu...@cloudbees.com> wrote:
> We've been usinghttp://maven.glassfish.org/for resolving all the
> artifacts for building core and plugins. But it has been down for the
> past two days and we have no ETA.
>
> So I propose we switch tohttp://repo.jenkins-ci.org/public.
>
> This issue was raised several times in the past that we rely on a 3rd
> party repository we have on control over. It was simply an inertia from
> earlier days when I was in the Glassfish team (and even had the physical
> access to the system!), and the migration never really came high enough
> in the priority list, until this outage.
>
> http://repo.jenkins-ci.org/is a hosted Artifactory, operated by JFrog.
> They kindly let us use their service for free (thanks JFrog!) It was
> started several weeks ago after a discussion in the project meeting, and
> the original motivation was to migrate from self-managedhttp://maven.jenkins-ci.org/

Kohsuke Kawaguchi

unread,
Mar 1, 2012, 12:12:35 PM3/1/12
to jenkin...@googlegroups.com, Ullrich Hafner
On 03/01/2012 01:41 AM, Ullrich Hafner wrote:
> Does that mean we should release plug-ins to repo.jenkins-ci.org instead
> of maven.jenkins-ci.org now?

That's the work in the "proof of concept" phase. For now, just continue
to deploy to maven.jenkins-ci.org.

If PoC is successful, we should be able to proxy maven.jenkins-ci.org
such that you won't see any changes in your deployment workflow.

Kohsuke Kawaguchi

unread,
Mar 1, 2012, 12:13:36 PM3/1/12
to jenkin...@googlegroups.com, Coutemeier

What is this plugin, and what's the error you get?

Coutemeier

unread,
Mar 2, 2012, 2:11:20 AM3/2/12
to Jenkins Developers
It is a new plugin.
I am using maven 2.2.1 to develop the plugin, with jdk 1.6. and
Eclipse Indigo with embbeded Maven 3.0.
When I try to compile from command line I get this errors:

/mnt/home/usuario/Documents/profilemixer-plugin/src/main/java/myPlugin/
PomXmlManager.java:[20,19] package hudson.maven does not exist
[ERROR] /mnt/home/usuario/Documents/profilemixer-plugin/src/main/java/
myPlugin/PomXmlManager.java:[21,19] package hudson.maven does not
exist
[ERROR] /mnt/home/usuario/Documents/profilemixer-plugin/src/main/java/
myPlugin/PomXmlManager.java:[20,19] package hudson.maven does not
exist
[ERROR] /mnt/home/usuario/Documents/profilemixer-plugin/src/main/java/
myPlugin/PomXmlManager.java:[21,19] package hudson.maven does not
exist
[ERROR] /mnt/home/usuario/Documents/profilemixer-plugin/src/main/java/
myPlugin/PomXmlManager.java:[70,2] cannot find symbol
[ERROR] symbol : class MavenModuleSetBuild
[ERROR] location: class myPlugin.PomXmlManager
[ERROR] /mnt/home/usuario/Documents/profilemixer-plugin/src/main/java/
myPlugin/PomXmlManager.java:[70,32] cannot find symbol
[ERROR] symbol : class MavenModuleSetBuild
[ERROR] location: class myPlugin.PomXmlManager
[ERROR] /mnt/home/usuario/Documents/profilemixer-plugin/src/main/java/
myPlugin/PomXmlManager.java:[225,10] cannot find symbol
[ERROR] symbol : class AbstractMavenProject
[ERROR] location: class myPlugin.PomXmlManager.DescriptorImpl

The errors indicates that maven (from commandline) can not find some
classes, like hudson.maven.MavenModuleSetBuild.

But when I compile from Eclipse all it's ok. I've tried to compile
from command line with maven 3.0, but with no luck. Also I've tried
deleting the folder repository of maven (.m2).
The plugin HelloWorldPlugin works fine, but if I add the class
hudson.maven.MavenModuleSetBuild, it gives me the same error as my
plugin: hudson.maven does not exist.

Any idea?
> >>  We've been usinghttp://maven.glassfish.org/forresolving all the
> >>  artifacts for building core and plugins. But it has been down for the
> >>  past two days and we have no ETA.
>
> >>  So I propose we switch tohttp://repo.jenkins-ci.org/public.
>
> >>  This issue was raised several times in the past that we rely on a 3rd
> >>  party repository we have on control over. It was simply an inertia from
> >>  earlier days when I was in the Glassfish team (and even had the physical
> >>  access to the system!), and the migration never really came high enough
> >>  in the priority list, until this outage.
>
> >>  http://repo.jenkins-ci.org/isa hosted Artifactory, operated by JFrog.

柏木りんね

unread,
Mar 14, 2012, 10:36:52 PM3/14/12
to jenkin...@googlegroups.com
When I built gerrit-trigger-plugin with suggested repository, It
failed due to dependency.

gerrit-trigger-plugin -> git-plugin 1.1.10 -> jgit 0.12.1

jgit 0.12.1 is not hosted in this repository (Also eclipse one)

Next, I changed jgit version to hosted version(1.3.0.201202151440-r)
in git-plugin source then built. But it still failed due to "missing
org/apache/maven/project/ProjectBuildngRequest".

I found below thread:
http://jenkins.361315.n4.nabble.com/Error-building-Jenkins-td3454428.html

I think my facing error is the same since I build it on Ubuntu (maven 2.2.1).

nicolas de loof

unread,
Mar 15, 2012, 2:56:37 AM3/15/12
to jenkin...@googlegroups.com
Indeed, maven 3 is a requirement
I suppose you installed maven using the system package, so are loked to 2.2.x ?
precise will have maven 3 (http://packages.ubuntu.com/precise/maven), in the meantime you can simply install the tar.gz distribution from apache.org

2012/3/15 柏木りんね <rinr...@gmail.com>

rin_ne

unread,
Mar 15, 2012, 4:19:17 AM3/15/12
to jenkin...@googlegroups.com
Yes it will success with maven3. I can build git-plugin using maven3 PPA.

But gerrit-trigger-plugin needs one setting. It's jgit-repository.
repo.jenkins-ci.org does not have the past packages (e.g. jgit 0.12.1)

It means that almost plugin owner should rebuild plugin if switch repository.

rin_ne

unread,
Mar 15, 2012, 5:19:31 AM3/15/12
to jenkin...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages