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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to