You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simon Kitching <si...@chello.at> on 2008/01/16 12:04:13 UTC
Using unreleased plugin
Hi,
I'd like to run the "dependency:tree" goal against a local project. According to the docs, this goal is only available in 2.0-alpha-5 or later. But that isn't out yet.
There is an alpha-5-SNAPHOT though:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-dependency-plugin/
and I see that some people are already using the dependency:tree feature so presume that they are using this snapshot.
I have therefore defined the apache snapshot repository in my settings.xml, under a profile called "apache" as documented on the maven site:
<profiles>
<profile>
<id>apache</id>
<repositories>
<repository>
<id>apache.org</id>
<name>Maven Snapshots</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.org</id>
<name>Maven Plugin Snapshots</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
But when I run
mvn -U -Papache dependency:tree
I still get
[INFO] Required goal not found: dependency:tree
Running with -X says:
[DEBUG] maven-dependency-plugin: resolved to version 2.0-alpha-4 from repository central
Running
mvn -Papache -Pnosuchprofile help:active-profiles
gives
The following profiles are active:
- apache (source: settings.xml)
so it looks like that is being picked up ok.
What am I missing?
Thanks,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Using unreleased plugin
Posted by Rémy Sanlaville <re...@gmail.com>.
Hi,
Try this command :
mvn
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree
HTH,
Rémy