Bonsoir,
Je suis en train de faire des EJB 3.0 sous maven2 après configuration de pom.xml, settings.xml alors j'ai toujours cette erreur:

Transitive dependency resolution for scope: compile has failed for your project.



Error message: Missing:
----------
1) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=jboss -DartifactId=jboss-persistence-api -Dversion=3.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jboss -DartifactId=jboss-persistence-api -Dversion=3.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) fr.auction:caveatemptor-jpa:war:1.0
2) jboss:jboss-persistence-api:jar:3.0.0-SNAPSHOT

2) jboss:jboss-ejb-api:jar:4.2.0.GA

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=jboss -DartifactId=jboss-ejb-api -Dversion=4.2.0.GA -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jboss -DartifactId=jboss-ejb-api -Dversion=4.2.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) fr.auction:caveatemptor-jpa:war:1.0
2) jboss:jboss-ejb-api:jar:4.2.0.GA

----------
2 required artifacts are missing.

for artifact:
fr.auction:caveatemptor-jpa:war:1.0

from the specified remote repositories:
ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2),
codehaus (http://repository.codehaus.org/),
sonatype (http://repository.sonatype.org/content/groups/public),
codehaus-snapshot (http://snapshots.repository.codehaus.org/)

Group-Id: fr.auction
Artifact-Id: caveatemptor-jpa
Version: 1.0
From file: C:\Users\MFOUKA MOKONO\.m2\caveatemptor-jpa\caveatemptor-jpa\pom.xml




[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Fri Feb 26 01:02:14 CET 2010
[INFO] Final Memory: 2M/10M
[INFO] -
-----------------------------------------------------------------------

======>>>>
Que dois-je faire pour remédier à cela puisque mon pom.xml est:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlnssi="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>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>
<!--
<dependency>
<groupId>javax.ejb</groupId>
<artifactId>ejb-api</artifactId>
<version>${ejb-api.version}</version>
</dependency>
-->
<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>


=========>>>>

Et mon fichier settings.xml est le suivant:

<?xml version="1.0" encoding="UTF-8"?>


<settings xmlns="http://maven.apache.org/settings/1.0.0"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<localRepository>C:\Users\MFOUKA MOKONO\.m2\caveatemptor-jpa</localRepository>

<proxies>
</proxies>


<mirrors>
<mirror>
<id>ibiblio.org</id>
<name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>



<profiles>
<profile>
<id>Maven-Snapshots</id>
<repositories>
<repository>
<id>central</id>
<url>http://repo1.maven.org/maven2/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>codehaus</id>
<url>http://repository.codehaus.org/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
<repository>
<id>codehaus-snapshot</id>
<url>http://snapshots.repository.codehaus.org/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>sonatype</id>
<url>http://repository.sonatype.org/content/groups/public</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
<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>

<pluginRepositories>
<pluginRepository>
<id>public-snapshots</id>
<url>http://public-snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
<pluginRepository>
<id>central</id>
<url>http://repo1.maven.org/maven2/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>

</profile>

</profiles>

<activeProfiles>
<activeProfile>Maven-Snapshots</activeProfile>
</activeProfiles>


</settings>

Merci pour toute aide.