Hello, i try to use the maven-dependency-plugin, i need the lastest snapshot
(2.0-alpha-1-SNAPSHOT) for the dependency:build-classpath goal from
http://people.apache.org/repo/m2-snapshot-repository/ (FTPluginSnaphots).
i have registered the plugin like this :
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0-alpha-1-SNAPSHOT</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory
}/dependency</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
And when i launch the command "mvn package", i got following messages :
-------------------------
[DEBUG] maven-resources-plugin: resolved to version 2.3-SNAPSHOT from
repository FTPluginSnaphots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-resources-plugin: resolved to version
2.3-20061118.060205-2from repository FTPluginSnaphots
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::4-SNAPSHOT for project:
null:maven-resources-plugin:maven-plugin:2.3-20061118.060205-2 from the
repository.
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugins: resolved to version 4-20061029.113029-2 from
repository FTPluginSnaphots
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for project:
org.apache.maven.plugins:maven-plugins:pom:4-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:4 from the repository.
[DEBUG] Skipping blacklisted repository central
[DEBUG] maven-compiler-plugin: resolved to version 2.1-SNAPSHOT from
repository FTPluginSnaphots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-compiler-plugin: resolved to version
2.1-20060829.112045-2from repository FTPluginSnaphots
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::3 for
project: null:maven-compiler-plugin:maven-plugin:2.1-20060829.112045-2 from
the repository.
[DEBUG] Trying repository codehaus.org
Downloading:
http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-plugins/3/maven-plugins-3.pom
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: null:maven-compiler-plugin:maven-plugin:2.1-20060829.112045-2
Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for
project: null:maven-compiler-plugin:maven-plugin:2.1-20060829.112045-2
-------------------------
I doesn't understand why the maven-plugins-3.pom couldn't get retrieved from
http://repo1.maven.org/maven2.
Is there an other way to use the apache maven-dependency-plugin, not the
codehaus one ?
Thanks