users@glassfish.java.net

Re: java-ee-api POM maven ?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Sat, 3 Jan 2009 10:37:50 +0100

> 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
>
>