users@jersey.java.net

Re: [Jersey] maven problems with the LATEST jersey artifacts

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Mon, 19 Oct 2009 18:23:44 +0200

This is a really strange issue, experienced recently
also in Atmosphere project and our Jersey samples.

I do not know the exact reason why the following fix worked
in the above mentioned cases, but there is a chance
it could work for you as well:

within repositories section of your pom:

  i presume, you have
        <repository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net Repository for Maven</name>
            <url>http://download.java.net/maven/2/</url>
            <layout>default</layout>
        </repository>
  presented there, then please try to push it down, so that
  this is the last repository defined in the repositories section.

~Jakub

On Mon, Oct 19, 2009 at 06:13:29PM +0200, Felipe Gaúcho wrote:
> <jersey-version>[1.1.3-ea,)</jersey-version>
>
> Downloading: http://download.java.net/maven/glassfish/com/sun/jersey/jersey-project/1.1.5-ea-SNAPSHOT/jersey-project-1.1.5-ea-SNAPSHOT.pom
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: null:jersey-server:jar:null
>
> Reason: Cannot find parent: com.sun.jersey:jersey-project for project:
> null:jersey-server:jar:null for project null:jersey-server:jar:null
>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-server</artifactId>
> <version>${jersey-version}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>com.sun.jersey</groupId>
> <artifactId>jersey-bundle</artifactId>
> <version>${jersey-version}</version>
> </dependency>
> </dependencies>
> </dependencyManagement>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

-- 
Jakub Podlešák
Software Engineer at SUN Microsystems And CZJUG Co-Leader
http://blogs.sun.com/japod