users@jersey.java.net

Re: [Jersey] Continue mavenization of jersey

From: Martin Grotzke <martin.grotzke_at_freiheit.com>
Date: Wed, 04 Jun 2008 14:07:43 +0200

On Wed, 2008-06-04 at 12:42 +0200, Paul Sandoz wrote:
> Martin Grotzke wrote:
> > Then instead of this
> >
> > <parent>
> > <groupId>com.sun.jersey</groupId>
> > <artifactId>jersey-contribs</artifactId>
> > <version>0.8-ea-SNAPSHOT</version>
> > <relativePath>../pom.xml</relativePath>
> > </parent>
> > <artifactId>jersey-spring</artifactId>
> > <packaging>jar</packaging>
> > <version>${jersey-version}</version>
> >
> > we can just have
> >
> > <parent>
> > <groupId>com.sun.jersey</groupId>
> > <artifactId>jersey-contribs</artifactId>
> > <version>0.8-ea-SNAPSHOT</version>
> > <relativePath>../pom.xml</relativePath>
> > </parent>
> > <artifactId>jersey-spring</artifactId>
> > <packaging>jar</packaging>
> >
> > as the version is inherited.
> >
>
> Hmm... just read up a bit on pom files. It says a <version> child
> element of <project> is a required element.
Correct. The <relativePath>../pom.xml</relativePath> is only helpful for
a local build, but not for artifacts in the repo, as there the
relativePaths are different (because of the version in the path).

Cheers,
Martin


>
> Paul.