You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by neo anderson <ja...@yahoo.co.uk> on 2008/04/12 18:37:47 UTC
ejb3 jboss persistence problem
Previously I successfully build ejb3 example with jboss version 4.2.2 by
specifying jboss library in the 'systempath'. Now I want to make use of the
maven (jboss) repository. So I change to use the dependency section of
pom.xml, modifying repository and dependency section; it is as follow:
<repositories>
<repository>
<id>jboss-maven2</id>
<url>http://repository.jboss.com</url>
</repository>
</repositories>
...
<dependency>
<groupId>jboss</groupId>
<artifactId>jboss-persistence-api</artifactId>
<version>3.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>jboss</groupId>
<artifactId>jboss-ejb-api</artifactId>
<version>4.2.0.GA</version>
</dependency>
But maven returns message like
Missing:
----------
1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT
Try downloading the file manually from the project website.
I am able to to see the jar file located in the
http://repository.jboss.com/jboss/jboss-persistence-api/ (The dependency for
jboss-ejb-api works fine.) How to solve this error without downing/
installing the jar manually?
Thanks for help,
--
View this message in context: http://www.nabble.com/ejb3-jboss-persistence-problem-tp16653034s177p16653034.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ejb3 jboss persistence problem
Posted by bpmfouka <bp...@yahoo.fr>.
Hi,
I want to develop an EJB3 application with maven but I have any problem on
library such as jboss-ejb3-all and thirdparty-all into dependance, I display
my pom.xml it'is possible to help me to improve this pom:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.auction</groupId>
<artifactId>caveatemptor-jpa</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>caveatemptor-jpa Maven Webapp</name>
<url>http://maven.apache.org</url>
<build>
<finalName>caveatemptor-jpa</finalName>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.jboss.aop</groupId>
<artifactId>jboss-aop</artifactId>
<version>${version.jboss.aop}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<configuration>
<ejbVersion>3.0</ejbVersion>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.5.ga</version>
<exclusions>
<exclusion>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-tools</artifactId>
<version>3.2.0.ga</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.3.2.GA</version>
</dependency>
<dependency>
<groupId>org.dbunit</groupId>
<artifactId>dbunit</artifactId>
<version>2.2.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.8</version>
<scope>test</scope>
<classifier>jdk15</classifier>
</dependency>
</dependencies>
</project>
neo anderson wrote:
>
> Previously I successfully build ejb3 example with jboss version 4.2.2 by
> specifying jboss library in the 'systempath'. Now I want to make use of
> the maven (jboss) repository. So I change to use the dependency section of
> pom.xml, modifying repository and dependency section; it is as follow:
>
> <repositories>
> <repository>
> <id>jboss-maven2</id>
> <url>http://repository.jboss.com</url>
> </repository>
> </repositories>
>
> ...
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-persistence-api</artifactId>
> <version>3.0.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-ejb-api</artifactId>
> <version>4.2.0.GA</version>
> </dependency>
>
>
> But maven returns message like
>
> Missing:
> ----------
> 1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
>
> I am able to to see the jar file located in the
> http://repository.jboss.com/jboss/jboss-persistence-api/ (The dependency
> for jboss-ejb-api works fine.) How to solve this error without downing/
> installing the jar manually?
>
> Thanks for help,
>
--
View this message in context: http://old.nabble.com/ejb3-jboss-persistence-problem-tp16653034p27714503.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ejb3 jboss persistence problem
Posted by Manos Batsis <ma...@geekologue.com>.
Wait that doesnt look right, sorry. Try:
<repositories>
<repository>
<id>jboss</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jboss-snapshots</id>
<name>JBoss Snapshot Repository</name>
<url>http://snapshots.jboss.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
Manos Batsis wrote:
>
> Hey Neo. Cool Name. Maybe
>
> <repositories>
> <repository>
> <id>repository.jboss.org</id>
> <name>JBoss Repository</name>
> <url>http://repository.jboss.org/maven2</url>
> </repository>
> <repository>
> <snapshots />
> <id>snapshots.jboss.org</id>
> <name>JBoss Snapshot Repository</name>
> <url>http://snapshots.jboss.org/maven2</url>
> </repository>
> </repositories>
>
> should do the trick. I dont think the one you are using is correct and
> even if it is, snapshots usually have their own repo.
>
> hth,
>
> Manos
>
>
> neo anderson wrote:
>> Previously I successfully build ejb3 example with jboss version 4.2.2 by
>> specifying jboss library in the 'systempath'. Now I want to make use
>> of the
>> maven (jboss) repository. So I change to use the dependency section of
>> pom.xml, modifying repository and dependency section; it is as follow:
>>
>> <repositories>
>> <repository>
>> <id>jboss-maven2</id>
>> <url>http://repository.jboss.com</url>
>> </repository>
>> </repositories>
>>
>> ...
>> <dependency>
>> <groupId>jboss</groupId>
>> <artifactId>jboss-persistence-api</artifactId>
>> <version>3.0.0-SNAPSHOT</version>
>> </dependency>
>> <dependency>
>> <groupId>jboss</groupId>
>> <artifactId>jboss-ejb-api</artifactId>
>> <version>4.2.0.GA</version>
>> </dependency>
>>
>>
>> But maven returns message like
>>
>> Missing:
>> ----------
>> 1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT
>>
>> Try downloading the file manually from the project website.
>>
>>
>> I am able to to see the jar file located in the
>> http://repository.jboss.com/jboss/jboss-persistence-api/ (The
>> dependency for
>> jboss-ejb-api works fine.) How to solve this error without downing/
>> installing the jar manually?
>>
>> Thanks for help,
>
>
> ---------------------------------------------------------------------
> 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: ejb3 jboss persistence problem
Posted by Manos Batsis <ma...@geekologue.com>.
Hey Neo. Cool Name. Maybe
<repositories>
<repository>
<id>repository.jboss.org</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/maven2</url>
</repository>
<repository>
<snapshots />
<id>snapshots.jboss.org</id>
<name>JBoss Snapshot Repository</name>
<url>http://snapshots.jboss.org/maven2</url>
</repository>
</repositories>
should do the trick. I dont think the one you are using is correct and
even if it is, snapshots usually have their own repo.
hth,
Manos
neo anderson wrote:
> Previously I successfully build ejb3 example with jboss version 4.2.2 by
> specifying jboss library in the 'systempath'. Now I want to make use of the
> maven (jboss) repository. So I change to use the dependency section of
> pom.xml, modifying repository and dependency section; it is as follow:
>
> <repositories>
> <repository>
> <id>jboss-maven2</id>
> <url>http://repository.jboss.com</url>
> </repository>
> </repositories>
>
> ...
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-persistence-api</artifactId>
> <version>3.0.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-ejb-api</artifactId>
> <version>4.2.0.GA</version>
> </dependency>
>
>
> But maven returns message like
>
> Missing:
> ----------
> 1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
>
> I am able to to see the jar file located in the
> http://repository.jboss.com/jboss/jboss-persistence-api/ (The dependency for
> jboss-ejb-api works fine.) How to solve this error without downing/
> installing the jar manually?
>
> Thanks for help,
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ejb3 jboss persistence problem
Posted by Tim Torbeyns <ti...@gmail.com>.
am not a maven specialist
but when I go to:
http://repository.jboss.com/jboss/jboss-persistence-api/3.0.0-SNAPSHOT
I see a lib folder
don't know if this is ok for maven ?
2008/4/12, neo anderson <ja...@yahoo.co.uk>:
>
> Previously I successfully build ejb3 example with jboss version 4.2.2 by
> specifying jboss library in the 'systempath'. Now I want to make use of the
> maven (jboss) repository. So I change to use the dependency section of
> pom.xml, modifying repository and dependency section; it is as follow:
>
> <repositories>
> <repository>
> <id>jboss-maven2</id>
> <url>http://repository.jboss.com</url>
> </repository>
> </repositories>
>
> ...
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-persistence-api</artifactId>
> <version>3.0.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-ejb-api</artifactId>
> <version>4.2.0.GA</version>
> </dependency>
>
>
> But maven returns message like
>
> Missing:
> ----------
> 1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
>
> I am able to to see the jar file located in the
> http://repository.jboss.com/jboss/jboss-persistence-api/ (The dependency for
> jboss-ejb-api works fine.) How to solve this error without downing/
> installing the jar manually?
>
> Thanks for help,
>
> --
> View this message in context: http://www.nabble.com/ejb3-jboss-persistence-problem-tp16653034s177p16653034.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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