users@glassfish.java.net

Re: java-ee-api POM maven ?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Sat, 3 Jan 2009 12:36:15 +0100

Humm.. I am not sure if it is related to glassfish.. because it
happens at compile time..

Anyway, I am using V2 and dreaming to migrate to V3 as soon EJB
container is there..

* my failing pom fragment were copied from Ludo's blog :(
* the manual import works.. and the rest of the goals run fine.. I am
just concerned that all my project collaborators will need to proceed
this manual step, while we migrated to maven expecting to get free of
the libs management by hand :)
* I will review your tips and try to use your pom fragments,
eventually it is just one of that minor killer mistakes :)

Thanks a lot..

On Sat, Jan 3, 2009 at 12:23 PM, Jane Young <Jane.Young_at_sun.com> wrote:
> Are you using GF as the Java EE 5 container?
> If your using Maven 1 repository, please see Ludo's blog:
> http://weblogs.java.net/blog/ludo/archive/2007/01/java_ee_5_apis.html
>
> If you're using GFv3-Prelude, use the following:
> <dependency>
> <groupId>org.glassfish</groupId>
> <artifactId>javaee-api</artifactId>
> <version>3.0-Prelude-b28b</version>
> <scope>provided</scope>
> </dependency>
> repository: http://download.java.net/maven/glassfish/
>
> HTH,
> Jane
>
>
> Felipe Gaúcho wrote:
>
> What is the error message when you execute maven?
>
>
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://download.java.net/maven/2//javaee/javaee-api/5/javaee-api-5.pom
> Downloading:
> https://maven-repository.dev.java.net/nonav/repository/javaee//javaee/javaee-api/5/javaee-api-5.pom
> Downloading:
> http://repo1.maven.org/maven2/javaee/javaee-api/5/javaee-api-5.pom
> Downloading:
> http://download.java.net/maven/2//javaee/javaee-api/5/javaee-api-5.jar
> Downloading:
> https://maven-repository.dev.java.net/nonav/repository/javaee//javaee/javaee-api/5/javaee-api-5.jar
> Downloading:
> http://repo1.maven.org/maven2/javaee/javaee-api/5/javaee-api-5.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) javaee:javaee-api:jar:5
>
> 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=5 -Dpackaging=jar
> -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=javaee -DartifactId=javaee-api
> -Dversion=5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
>
> Path to dependency:
> 1) net.java.dev.cejug.classifieds.login:cejug-classifieds-login:jar:1.0
> 2) javaee:javaee-api:jar:5
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> net.java.dev.cejug.classifieds.login:cejug-classifieds-login:jar:1.0
>
> from the specified remote repositories:
> javaee-repository
> (https://maven-repository.dev.java.net/nonav/repository/javaee/),
> maven2-repository.dev.java.net (http://download.java.net/maven/2/),
> central (http://repo1.maven.org/maven2)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
>
>
> On Sat, Jan 3, 2009 at 6:42 AM, Jane Young <Jane.Young_at_sun.com> wrote:
>
>
> What is the error message when you execute maven?
>
>
> Felipe Gaúcho wrote:
>
>
> I am having problems trying to declare java ee 5 in my pom file:
>
> <repositories>
> <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>
> </repositories>
>
> <dependencies>
> <dependency>
> <groupId>javaee</groupId>
> <artifactId>javaee-api</artifactId>
> <version>5</version>
> </dependency>
> <dependency>
> <groupId>javax.persistence</groupId>
> <artifactId>persistence-api</artifactId>
> <version>1.0</version>
> </dependency>
> </dependencies>
>
>
> anything else ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>