You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicola Benaglia <ni...@gmail.com> on 2007/11/16 17:15:50 UTC
javax.persistence:ejb:jar:3.0-public_review
Hi !!
I need to add javax.persistence:ejb:jar:3.0-public_review as dependency.
I found it with m2 plugin which added to the pom:
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>ejb-3.0-public-draft</artifactId>
<version>20050623</version>
</dependency>
But building it I get:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[ERROR] BUILD FAILURE
[INFO] ----------------------------------------------------------------------------
[INFO] Missing:
----------
1) javax.persistence:ejb:jar:3.0-public_review
Try downloading the file manually from:
http://prdownloads.sourceforge.net/hibernate/hibernate-annotations-3.1beta5.tar.gz?download
Then, install it using the command:
mvn install:install-file -DgroupId=javax.persistence -DartifactId=ejb \
-Dversion=3.0-public_review -Dpackaging=jar -Dfile=/path/to/file
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
And if I try the manual command mentioned I get :
[INFO] Error installing artifact 'javax.persistence:ejb:jar': Error installing a
rtifact: File C:\Documents and Settings\nicola\.m2\repository\javax\persistence\
ejb\3.0-public_review\ejb3-persistence.jar does not exist
Could you please help me?
Thank you,
Nicola
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax.persistence:ejb:jar:3.0-public_review
Posted by Nicola Benaglia <ni...@gmail.com>.
Thank you very much Wayne.
In that way, it worked.
Thank you again,
N
2007/11/16, Wayne Fay <wa...@gmail.com>:
> The -Dfile=(file name here) parameter requires that the filename match
> the file you downloaded, and it must be a complete path to the file if
> it is not located in your current directory.
>
> When I downloaded the file you provided a link to, it gave me a file
> name of hibernate-annotations-3.1beta5.tar.gz.
>
> I think you didn't install things properly.
>
> Wayne
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax.persistence:ejb:jar:3.0-public_review
Posted by Wayne Fay <wa...@gmail.com>.
The -Dfile=(file name here) parameter requires that the filename match
the file you downloaded, and it must be a complete path to the file if
it is not located in your current directory.
When I downloaded the file you provided a link to, it gave me a file
name of hibernate-annotations-3.1beta5.tar.gz.
I think you didn't install things properly.
Wayne
On 11/16/07, Nicola Benaglia <ni...@gmail.com> wrote:
> When I execute mannually the command I type:
>
> mvn install:install-file -DgroupId=javax.persistence -DartifactId=ejb
> -Dversion=3.0-public_review -Dpackaging=jar
> -Dfile=ejb3-persistence.jar
>
> Thank you,
> nico
>
> 2007/11/16, Wayne Fay <wa...@gmail.com>:
> > I need to see the "mvn install:install-file" command that you
> > executed. Not your pom.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax.persistence:ejb:jar:3.0-public_review
Posted by Nicola Benaglia <ni...@gmail.com>.
When I execute mannually the command I type:
mvn install:install-file -DgroupId=javax.persistence -DartifactId=ejb
-Dversion=3.0-public_review -Dpackaging=jar
-Dfile=ejb3-persistence.jar
Thank you,
nico
2007/11/16, Wayne Fay <wa...@gmail.com>:
> I need to see the "mvn install:install-file" command that you
> executed. Not your pom.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax.persistence:ejb:jar:3.0-public_review
Posted by Wayne Fay <wa...@gmail.com>.
I need to see the "mvn install:install-file" command that you
executed. Not your pom.
Wayne
On 11/16/07, Nicola Benaglia <ni...@gmail.com> wrote:
> 2007/11/16, Wayne Fay <wa...@gmail.com>:
> > Show us the full mvn install line that you executed.
> >
> > I think you simply are getting the groupId, artifactId, and version
> > messed up somewhere.
> >
> > Wayne
>
>
> Hi,
> I attach the pom.xml:
>
> <?xml version="1.0" encoding="UTF-8"?><project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.myGroupId</groupId>
> <artifactId>pers</artifactId>
> <name>pers</name>
> <version>0.1-SNAPSHOT</version>
> <url>http://maven.apache.org</url>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> </plugins>
> </build>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate</artifactId>
> <version>3.2.4.sp1</version>
> <exclusions>
> <exclusion>
> <artifactId>jta</artifactId>
> <groupId>javax.transaction</groupId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
> <groupId>postgresql</groupId>
> <artifactId>postgresql</artifactId>
> <version>8.1-408.jdbc3</version>
> </dependency>
> <dependency>
> <groupId>javax.persistence</groupId>
> <artifactId>persistence-api</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>hibernate</groupId>
> <artifactId>hibernate-annotations</artifactId>
> <version>3.1beta4</version>
> </dependency>
> <dependency>
> <groupId>javax.persistence</groupId>
> <artifactId>ejb-3.0-public-draft</artifactId>
> <version>20050623</version>
> </dependency>
> </dependencies>
> </project>
>
> I execute commands by m2 plugin for eclipse.
> The pom was completed using "Add Dependency" from m2.
>
> Thank
> Nic
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax.persistence:ejb:jar:3.0-public_review
Posted by Daniele De Francesco <dd...@gmail.com>.
Ciao,
Alternatively, but only for a matter of repository "homogeneity" ( that
artifact belongs to javax.persistence groupId), you could try
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>ejb-3.0-public-draft</artifactId>
<version>20050623</version>
*<type>pom</type>*
</dependency>
In fact the maven repo central contains only the pom file of that artifact.
In file .pom you'll find
<?xml version="1.0" encoding="UTF-8"?><project>
<modelVersion>4.0.0</modelVersion>
<groupId>javax.persistence</groupId>
<artifactId>ejb</artifactId>
<version>3.0-public-draft-20050623</version>
</project>
which is the "interface" specification of the particular implementation of
ejb3 that you want to use.
This consideration takes me on a question: why are you using a such old
specification of ef ejb 3.0?
Nowadays you can easily, believe me, configure maven-ejb-plugin plugin to
have ejb3 packaged.
Greetings
Daniele
On Nov 16, 2007 6:24 PM, Nicola Benaglia <ni...@gmail.com> wrote:
> 2007/11/16, Wayne Fay <wa...@gmail.com>:
> > Show us the full mvn install line that you executed.
> >
> > I think you simply are getting the groupId, artifactId, and version
> > messed up somewhere.
> >
> > Wayne
>
>
> Hi,
> I attach the pom.xml:
>
> <?xml version="1.0" encoding="UTF-8"?><project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.myGroupId</groupId>
> <artifactId>pers</artifactId>
> <name>pers</name>
> <version>0.1-SNAPSHOT</version>
> <url>http://maven.apache.org</url>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> </plugins>
> </build>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate</artifactId>
> <version>3.2.4.sp1</version>
> <exclusions>
> <exclusion>
> <artifactId>jta</artifactId>
> <groupId>javax.transaction</groupId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
> <groupId>postgresql</groupId>
> <artifactId>postgresql</artifactId>
> <version>8.1-408.jdbc3</version>
> </dependency>
> <dependency>
> <groupId>javax.persistence</groupId>
> <artifactId>persistence-api</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>hibernate</groupId>
> <artifactId>hibernate-annotations</artifactId>
> <version>3.1beta4</version>
> </dependency>
> <dependency>
> <groupId>javax.persistence</groupId>
> <artifactId>ejb-3.0-public-draft</artifactId>
> <version>20050623</version>
> </dependency>
> </dependencies>
> </project>
>
> I execute commands by m2 plugin for eclipse.
> The pom was completed using "Add Dependency" from m2.
>
> Thank
> Nic
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: javax.persistence:ejb:jar:3.0-public_review
Posted by Nicola Benaglia <ni...@gmail.com>.
2007/11/16, Wayne Fay <wa...@gmail.com>:
> Show us the full mvn install line that you executed.
>
> I think you simply are getting the groupId, artifactId, and version
> messed up somewhere.
>
> Wayne
Hi,
I attach the pom.xml:
<?xml version="1.0" encoding="UTF-8"?><project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.myGroupId</groupId>
<artifactId>pers</artifactId>
<name>pers</name>
<version>0.1-SNAPSHOT</version>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.4.sp1</version>
<exclusions>
<exclusion>
<artifactId>jta</artifactId>
<groupId>javax.transaction</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>8.1-408.jdbc3</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.1beta4</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>ejb-3.0-public-draft</artifactId>
<version>20050623</version>
</dependency>
</dependencies>
</project>
I execute commands by m2 plugin for eclipse.
The pom was completed using "Add Dependency" from m2.
Thank
Nic
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: javax.persistence:ejb:jar:3.0-public_review
Posted by Wayne Fay <wa...@gmail.com>.
Show us the full mvn install line that you executed.
I think you simply are getting the groupId, artifactId, and version
messed up somewhere.
Wayne
On 11/16/07, Nicola Benaglia <ni...@gmail.com> wrote:
> Hi !!
>
> I need to add javax.persistence:ejb:jar:3.0-public_review as dependency.
>
> I found it with m2 plugin which added to the pom:
>
> <dependency>
> <groupId>javax.persistence</groupId>
> <artifactId>ejb-3.0-public-draft</artifactId>
> <version>20050623</version>
> </dependency>
>
>
> But building it I get:
>
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> [ERROR] BUILD FAILURE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Missing:
> ----------
> 1) javax.persistence:ejb:jar:3.0-public_review
>
> Try downloading the file manually from:
> http://prdownloads.sourceforge.net/hibernate/hibernate-annotations-3.1beta5.tar.gz?download
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=javax.persistence -DartifactId=ejb \
> -Dversion=3.0-public_review -Dpackaging=jar -Dfile=/path/to/file
>
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>
>
>
> And if I try the manual command mentioned I get :
>
> [INFO] Error installing artifact 'javax.persistence:ejb:jar': Error installing a
> rtifact: File C:\Documents and Settings\nicola\.m2\repository\javax\persistence\
> ejb\3.0-public_review\ejb3-persistence.jar does not exist
>
>
> Could you please help me?
>
> Thank you,
> Nicola
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org