users@glassfish.java.net

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

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sun, 7 Feb 2010 18:46:08 +0100

ops, I celebrated too early..

can you send me an example of your maven dependency block and
-specially- the repository block ?

2010/2/7 Felipe Gaścho <fgaucho_at_gmail.com>:
> thank you very much... 6.0 worked........
>
> * ${javaee-version} is a property in the super pom.. so this way I can
> update the dependencies of all modules in only one place.. a common
> practice in Maven.
>
> <properties>
>        <javaee-version>6.0</javaee-version>
> </properties>
>
>
> On Sun, Feb 7, 2010 at 6:17 PM, Ludovic Champenois
> <Ludovic.Champenois_at_sun.com> wrote:
>> 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
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
>
>
> --
> ------------------------------------------
>   Felipe Gaścho
>   10+ Java Programmer
>   CEJUG Senior Advisor
>



-- 
------------------------------------------
   Felipe Gaścho
   10+ Java Programmer
   CEJUG Senior Advisor