[GeoNetwork-devel] GN Maven Repository: Artifactory?

Hi all,

I am proposing to install and use Artifactory for GN as it’s Maven Repository.

Artifactory comes from http://www.jfrog.org/ and is open source.
Live demo http://repo.jfrog.org/artifactory/webapp

Artifactory is a Maven repository. All GN Maven artifacts can be loaded in Artifactory automatically by Hudson by mvn deploy.

Using a Maven repository for GN has these advantages:

  • Publishing all GN artefacts to the outside world
  • Developer can load one artifact from SVN in its IDE and work directly. Maven will automatically load all other dependent GN artifacts from Artifactory.

Why artifactory?
There are others as well. I did a very quick check. There was another one for which I had to define JNDI datasources. Too much work. Installing Artifactory is just throwing it in the webapps of Tomcat and it runs. Artifactory has also quite a rich UI.

Implementing Artifactory means:

  • installing on a server

  • adding 1 entry in the Maven settings.xml

  • adding 2 entries to all pom.xml (in SVN /geonetwork/sandbox/3.0.x/)

  • adding mvn deploy to the build definition of Hudson

For the other project all this took me about 2-3 hours.

What do you say?

Kind Regards,
Erik van Ingen

Hi Erik,

You’re right Erik, the next step since Maven migration, would be to have a repository manager in order to publish all GeoNetwork specific artifacts to the community. AFAIK there is two famous solutions for such a tool, either Artifactory or Nexus. Personally I’m more confident with Nexus as I’m using it for other projects but I would be happy to have feedback from your side, Erik.
Here you will find some more information to compare Artifactory vs. Nexus [1].

BTW, I would provide you this article in order to well understand what could be the best way to handle artifacts or to firstly promote the use of the Central Maven repository [2].

[1] http://www.sonatype.com/people/2009/01/contrasting-nexus-and-artifactory/
[2] http://www.sonatype.com/people/2010/04/uploading-artifacts-to-the-central-maven-repository-diy/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+sonatype+(Sonatype+Blogs)

Looking forward to your feedback,

Cheers,

Mathieu

I am proposing to install and use Artifactory for GN as it’s Maven Repository.

Artifactory comes from http://www.jfrog.org/ and is open source.
Live demo http://repo.jfrog.org/artifactory/webapp

Artifactory is a Maven repository. All GN Maven artifacts can be loaded in Artifactory automatically by Hudson by mvn deploy.

Using a Maven repository for GN has these advantages:

  • Publishing all GN artefacts to the outside world
  • Developer can load one artifact from SVN in its IDE and work directly. Maven will automatically load all other dependent GN artifacts from Artifactory.

Why artifactory?
There are others as well. I did a very quick check. There was another one for which I had to define JNDI datasources. Too much work. Installing Artifactory is just throwing it in the webapps of Tomcat and it runs. Artifactory has also quite a rich UI.

Implementing Artifactory means:

  • installing on a server

  • adding 1 entry in the Maven settings.xml

  • adding 2 entries to all pom.xml (in SVN /geonetwork/sandbox/3.0.x/)

  • adding mvn deploy to the build definition of Hudson

For the other project all this took me about 2-3 hours.

What do you say?

Kind Regards,
Erik van Ingen


ThinkGeek and WIRED’s GeekDad team up for the Ultimate
GeekDad Father’s Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork