users@glassfish.java.net

Re: javaee-api 6.0-SNAPSHOT failing as Maven dependency

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Sun, 07 Feb 2010 09:17:21 -0800

On 2/7/10 9:02 AM, Felipe Gaścho wrote:
> I am again having problems to load the javaee-api...
>
> <repositories>
> <repository>
> <id>java.net2</id>
> <name>Java.Net Maven2 Repository, hosts the javaee-api dependency</name>
> <url>http://download.java.net/maven/2</url>
> </repository>
> </repositories>
>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>javax</groupId>
> <artifactId>javaee-api</artifactId>
> <version>${javaee-version}</version>
> <scope>provided</scope>
> </dependency>
>
> ....
>
> and:
>
> 1) javaee:javaee-api:jar:6.0-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=javaee
> -DartifactId=javaee-api -Dversion=6.0-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
> any hint ?
>
>
>
What is ${javaee-version}?
Stop using a SNAPSHOT version and pick <version>6.0</version>

Also instead of <dependencyManagement> I use <dependencies>
Ludo