Problème MAVEN sous Eclipse
Bonjour,
J'ai récupéré un projet dans Eclipse ( Eclipse Java EE IDE for web developpers, Version Mars 2 release 4.5.2)
Ce projet est basé sur MAVEN et je n'y connais rien sous MAVEN.
J'ai réussi à importer le projet (livré avec les sources et un repository) dans Eclipse mais je suis bloqué par un message d'erreur dans le fichier pom.xml
Peut-être pouvez vous m'aider.
Merci mille fois
OB
Message d'erreur sur pom.xml
Code:
1 2
| Error resolving version for plugin 'org.apache.maven.plugins:maven-source-plugin' from the repositories [local (C:\Users\ddupont
\.m2\repository), central (<a href="http://central" target="_blank">http://central</a>), public-snapshots (<a href="http://public-snapshots)]:" target="_blank">http://public-snapshots)]:</a> Plugin not found in any plugin repository |
Dans Eclipes dans préférences/Maven/Installations/ il y a :
- coché : EMBEDDED 3.3.3/1.6.2.20150902-0001
- non coché WORKSPACE NOT AVAILABLE (3.0)
Dans le fichier pom.xml du projet :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <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">
<parent>
<artifactId>root</artifactId>
<groupId>com.toto</groupId>
<version>2.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.toto.trams</groupId>
<artifactId>trams</artifactId>
<packaging>pom</packaging>
<name>trams</name>
<version>10.7.0</version>
<description>Projet principal TRAMS</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build> |
le dir dans le repository par rapport à maven :
Citation:
C:\Users\ddupont\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.0.2
HELP :(