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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to