You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by bryan ward <wa...@gmail.com> on 2007/11/27 19:19:35 UTC

dependency:tree not working in maven 2.0.7

Hi, 

I would like to run some of the dependency goals listed in the documentation 

http://maven.apache.org/plugins/maven-dependency-plugin/

however when I do, I get an error stating that the goal cannot be found? 
Does anyone know why this is?


/cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Required goal not found: dependency:tree
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found:
dependency:tree
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
cutor.java:1538)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
aultLifecycleExecutor.java:386)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 27 11:14:47 MST 2007
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------


-- 
View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13976690
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: dependency:tree not working in maven 2.0.7

Posted by Siarhei Dudzin <si...@gmail.com>.
I simply generate site to see the dependency tree...

On Nov 27, 2007 7:40 PM, Dennis Lundberg <de...@apache.org> wrote:

> You need at least version 2.0-alpha-5 of the dependency-plugin. The tree
> goal was introduced in that version as indicated here:
>
> http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
>
> bryan ward wrote:
> > Hi,
> >
> > I would like to run some of the dependency goals listed in the
> documentation
> >
> > http://maven.apache.org/plugins/maven-dependency-plugin/
> >
> > however when I do, I get an error stating that the goal cannot be found?
> > Does anyone know why this is?
> >
> >
> > /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'dependency'.
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Required goal not found: dependency:tree
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > org.apache.maven.BuildFailureException: Required goal not found:
> > dependency:tree
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
> (DefaultLifecycleExe
> > cutor.java:1538)
> >         at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> (Def
> > aultLifecycleExecutor.java:386)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java
> > :138)
> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :334)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >         at
> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: < 1 second
> > [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007
> > [INFO] Final Memory: 2M/4M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Problem with MANIFEST.MF in maven-jar-plugin

Posted by helio <he...@buscape-inc.com>.
Hi, guys!

I have not known the rule of 72 character in Manifest file.
My application was using more than 72 character in Manifest file.
When I saw the file created by maven, I thought that will not work out
I tested and work out with breaklines.
 
Sorry and thanks for your help!

Helio

Wayne Fay escreveu:
> What do you mean "my jar does not work out"? How does it break?
>
> Please review the JAR spec -- I am reasonably certain the
> Maven-produced manifest.mf is correct:
> http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files
>
> Line length:
> No line may be longer than 72 bytes (not characters), in its
> UTF8-encoded form. If a value would make the initial line longer than
> this, it should be continued on extra lines (each starting with a
> single SPACE).
>
> Wayne
>
> On 11/27/07, helio <he...@buscape-inc.com> wrote:
>   
>> Hi,
>>
>> I am using maven-jar-plugin on maven 2.0.7.
>> I added this in my pom.xml:
>>
>> <build>
>>  <plugins>
>>    <plugin>
>>      <groupId>org.apache.maven.plugins</groupId>
>>      <artifactId>maven-jar-plugin</artifactId>
>>      <configuration>
>>        <archive>
>>
>> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
>>        </archive>
>>      </configuration>
>>    </plugin>
>>  </plugins>
>> </build>
>>
>> In src/main/resources/META-INF/MANIFEST.MF I have:
>>
>> Manifest-Version: 1.0
>> Class-Path: activation.jar commons-logging.jar getopt.jar javassist.jar
>> jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar
>> jboss-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar
>> jbossws-client.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar
>> log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar
>> stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar
>> Main-Class: com.Claudio
>>
>> But when I run mvn clean package, into jar´s MANIFEST.MF I got:
>>
>> Manifest-Version: 1.0
>> Archiver-Version: Plexus Archiver
>> Created-By: Apache Maven
>> Built-By: claudior
>> Build-Jdk: 1.5.0_06
>> Main-Class: com.Claudio
>> Class-Path: activation.jar commons-logging.jar getopt.jar javassist.ja
>>  r jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jbos
>>  s-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-cl
>>  ient.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar
>>  mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar
>>  wsdl4j.jar wstx.jar xercesImpl.jar
>>
>> The plugin maven-jar-plugin adds breaklines in Class-Path and my jar
>> does not work out!!!
>>
>> Please, help me.
>>
>> Helio
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>   


-- 
 
* Helio Marci de Oliveira *
Departamento de Tecnologia
helio@buscape-inc.com <ma...@buscape-inc.com>
tel: + 55 11 3848 8700 ramal:8780
skype: helio.marci
<http://www.buscape.com>
 







---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with MANIFEST.MF in maven-jar-plugin

Posted by Stuart McCulloch <st...@jayway.net>.
On 28/11/2007, Wayne Fay <wa...@gmail.com> wrote:
>
> What do you mean "my jar does not work out"? How does it break?
>
> Please review the JAR spec -- I am reasonably certain the
> Maven-produced manifest.mf is correct:
>
> http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files
>
> Line length:
> No line may be longer than 72 bytes (not characters), in its
> UTF8-encoded form. If a value would make the initial line longer than
> this, it should be continued on extra lines (each starting with a
> single SPACE).


that's correct - you'll see the same effect when using plain old jar:

   jar cfm foo.jar src/main/resources/META-INF/MANIFEST.MF
   jar xf foo.jar

and META-INF/MANIFEST.MF will be formatted with the 72 char limit

as Wayne said, could you explain more about "does not work out"?
do you see any exceptions / errors when using your jar? are those
jarfiles listed in Class-Path, in the same directory as your jar.

note Class-Path does not allow you to refer to embedded jars, see:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4648386
for the (long-running!) saga...

Wayne
>
> On 11/27/07, helio <he...@buscape-inc.com> wrote:
> > Hi,
> >
> > I am using maven-jar-plugin on maven 2.0.7.
> > I added this in my pom.xml:
> >
> > <build>
> >  <plugins>
> >    <plugin>
> >      <groupId>org.apache.maven.plugins</groupId>
> >      <artifactId>maven-jar-plugin</artifactId>
> >      <configuration>
> >        <archive>
> >
> > <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
> >        </archive>
> >      </configuration>
> >    </plugin>
> >  </plugins>
> > </build>
> >
> > In src/main/resources/META-INF/MANIFEST.MF I have:
> >
> > Manifest-Version: 1.0
> > Class-Path: activation.jar commons-logging.jar getopt.jar javassist.jar
> > jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar
> > jboss-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar
> > jbossws-client.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar
> > log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar
> > stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar
> > Main-Class: com.Claudio
> >
> > But when I run mvn clean package, into jar´s MANIFEST.MF I got:
> >
> > Manifest-Version: 1.0
> > Archiver-Version: Plexus Archiver
> > Created-By: Apache Maven
> > Built-By: claudior
> > Build-Jdk: 1.5.0_06
> > Main-Class: com.Claudio
> > Class-Path: activation.jar commons-logging.jar getopt.jar javassist.ja
> >  r jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jbos
> >  s-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-cl
> >  ient.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar
> >  mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar
> >  wsdl4j.jar wstx.jar xercesImpl.jar
> >
> > The plugin maven-jar-plugin adds breaklines in Class-Path and my jar
> > does not work out!!!
> >
> > Please, help me.
> >
> > Helio
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Cheers, Stuart

Re: Problem with MANIFEST.MF in maven-jar-plugin

Posted by Wayne Fay <wa...@gmail.com>.
What do you mean "my jar does not work out"? How does it break?

Please review the JAR spec -- I am reasonably certain the
Maven-produced manifest.mf is correct:
http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Notes%20on%20Manifest%20and%20Signature%20Files

Line length:
No line may be longer than 72 bytes (not characters), in its
UTF8-encoded form. If a value would make the initial line longer than
this, it should be continued on extra lines (each starting with a
single SPACE).

Wayne

On 11/27/07, helio <he...@buscape-inc.com> wrote:
> Hi,
>
> I am using maven-jar-plugin on maven 2.0.7.
> I added this in my pom.xml:
>
> <build>
>  <plugins>
>    <plugin>
>      <groupId>org.apache.maven.plugins</groupId>
>      <artifactId>maven-jar-plugin</artifactId>
>      <configuration>
>        <archive>
>
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
>        </archive>
>      </configuration>
>    </plugin>
>  </plugins>
> </build>
>
> In src/main/resources/META-INF/MANIFEST.MF I have:
>
> Manifest-Version: 1.0
> Class-Path: activation.jar commons-logging.jar getopt.jar javassist.jar
> jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar
> jboss-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar
> jbossws-client.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar
> log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar
> stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar
> Main-Class: com.Claudio
>
> But when I run mvn clean package, into jar´s MANIFEST.MF I got:
>
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Created-By: Apache Maven
> Built-By: claudior
> Build-Jdk: 1.5.0_06
> Main-Class: com.Claudio
> Class-Path: activation.jar commons-logging.jar getopt.jar javassist.ja
>  r jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jbos
>  s-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-cl
>  ient.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar
>  mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar
>  wsdl4j.jar wstx.jar xercesImpl.jar
>
> The plugin maven-jar-plugin adds breaklines in Class-Path and my jar
> does not work out!!!
>
> Please, help me.
>
> Helio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Problem with MANIFEST.MF in maven-jar-plugin

Posted by helio <he...@buscape-inc.com>.
Hi,

I am using maven-jar-plugin on maven 2.0.7.
I added this in my pom.xml:

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <configuration>
        <archive>
          
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
        </archive>
      </configuration>
    </plugin>
  </plugins>
</build>

In src/main/resources/META-INF/MANIFEST.MF I have:

Manifest-Version: 1.0
Class-Path: activation.jar commons-logging.jar getopt.jar javassist.jar 
jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar 
jboss-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar 
jbossws-client.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar 
log4j.jar mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar 
stax-api.jar wsdl4j.jar wstx.jar xercesImpl.jar
Main-Class: com.Claudio

But when I run mvn clean package, into jar´s MANIFEST.MF I got:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: claudior
Build-Jdk: 1.5.0_06
Main-Class: com.Claudio
Class-Path: activation.jar commons-logging.jar getopt.jar javassist.ja
 r jaxb-api.jar jaxb-impl.jar jbossall-client.jar jboss-ejb3x.jar jbos
 s-j2ee.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar jbossws-cl
 ient.jar jbossws-spi.jar jboss-xml-binding.jar jtds-1.2.jar log4j.jar
  mail.jar mysql-connector-java-3.1.12-bin.jar policy.jar stax-api.jar
  wsdl4j.jar wstx.jar xercesImpl.jar

The plugin maven-jar-plugin adds breaklines in Class-Path and my jar 
does not work out!!!

Please, help me.

Helio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: dependency:tree not working in maven 2.0.7

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
The site does say that the goal is available since 2.0-alpha-5.

dependency:tree

Displays the dependency tree for this project.

Mojo Attributes:

    * Requires a Maven 2.0 project to execute.
    * Requires dependency resolution of artifacts in scope: test
    * Since version: 2.0-alpha-5


-----Original Message-----
From: bryan ward [mailto:wardbt@gmail.com] 
Sent: Tuesday, November 27, 2007 2:10 PM
To: users@maven.apache.org
Subject: Re: dependency:tree not working in maven 2.0.7


Hi,

Thanks for the informative reply.  It leaves me wondering though why
functionality that is not currently available via the standard maven
install
is listed in the plugin documentation?  

Thanks,

Bryan



Wayne Fay wrote:
> 
> Assuming the plugin has been released, you have two options:
> 1. Specify the plugin version in your pom.
> 2. Use the "full" name of the plugin on the command line:
> mvn groupId:artifactId:version:goal eg
> mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5:tree
> 
> Unfortunately, this plugin version is still in development, so this is
> not sufficient. You can see the latest versions here:
>
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency-
plugin/
> 
> If you must use this new version, you will need to add the Apache
> snapshot repo to your pom or settings.xml, or pull the code from SVN
> and build/install it locally.
> 
> Wayne
> 
> On 11/27/07, bryan ward <wa...@gmail.com> wrote:
>>
>> I looked in my local repository and it currently has version
2.0-alpha-4
>> of
>> the dependency plugin.  Do you know how A) it chose to use
2.0-alpha-4
>> and
>> B) how do I change it to use alpha-5 (or the latest available).
>>
>> Thanks!
>>
>> Bryan
>>
>>
>>
>> dennisl-2 wrote:
>> >
>> > You need at least version 2.0-alpha-5 of the dependency-plugin. The
>> tree
>> > goal was introduced in that version as indicated here:
>> >
>> >
http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
>> >
>> > bryan ward wrote:
>> >> Hi,
>> >>
>> >> I would like to run some of the dependency goals listed in the
>> >> documentation
>> >>
>> >> http://maven.apache.org/plugins/maven-dependency-plugin/
>> >>
>> >> however when I do, I get an error stating that the goal cannot be
>> found?
>> >> Does anyone know why this is?
>> >>
>> >>
>> >> /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree
>> >> + Error stacktraces are turned on.
>> >> [INFO] Scanning for projects...
>> >> [INFO] Searching repository for plugin with prefix: 'dependency'.
>> >> [INFO]
>> >>
>>
------------------------------------------------------------------------
>> >> [ERROR] BUILD FAILURE
>> >> [INFO]
>> >>
>>
------------------------------------------------------------------------
>> >> [INFO] Required goal not found: dependency:tree
>> >> [INFO]
>> >>
>>
------------------------------------------------------------------------
>> >> [INFO] Trace
>> >> org.apache.maven.BuildFailureException: Required goal not found:
>> >> dependency:tree
>> >>         at
>> >>
>>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
faultLifecycleExe
>> >> cutor.java:1538)
>> >>         at
>> >>
>>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAgg
regationNeeds(Def
>> >> aultLifecycleExecutor.java:386)
>> >>         at
>> >>
>>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java
>> >> :138)
>> >>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>> >>         at
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
>> >>         at
>> >>
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
>> >>         at
>> >>
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
>> >>         at java.lang.reflect.Method.invoke(Method.java:585)
>> >>         at
>> >>
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> >>         at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> >>         at
>> >>
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> >>         at
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> >> [INFO]
>> >>
>>
------------------------------------------------------------------------
>> >> [INFO] Total time: < 1 second
>> >> [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007
>> >> [INFO] Final Memory: 2M/4M
>> >> [INFO]
>> >>
>>
------------------------------------------------------------------------
>> >>
>> >>
>> >
>> >
>> > --
>> > Dennis Lundberg
>> >
>> >
---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf488
3555s177.html#a13979033
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf488
3555s177.html#a13980965
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: dependency:tree not working in maven 2.0.7

Posted by Marcel Schutte <ma...@gmail.com>.
Well, actually, I would much prefer a release of version alpha-5 :) It's
been awhile and I would like to try this dependency:tree functionality too.

Marcel

On Nov 27, 2007 11:38 PM, Wendy Smoak <ws...@gmail.com> wrote:

> On 11/27/07, bryan ward <wa...@gmail.com> wrote:
>
> > Thanks for the informative reply.  It leaves me wondering though why
> > functionality that is not currently available via the standard maven
> install
> > is listed in the plugin documentation?
>
> My fault. :)  A while back I had the brilliant idea of publishing the
> latest-and-greatest plugin docs with new features clearly marked as
> "Since X.X".  It ended up causing too much confusion, so we switched
> back to only publishing docs for the latest release.
>
> The next time the dependency plugin is released, the docs for
> 2.0-alpha-5 will be published, and they will stay on the site until
> the next version is ready.
>
> (I can't do it from here, but someone could check out the tag for
> 2.0-alpha-4 and deploy the site... might need to update the parent pom
> locally to v10 to pick up recent changes.)
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: dependency:tree not working in maven 2.0.7

Posted by Wendy Smoak <ws...@gmail.com>.
On 11/27/07, bryan ward <wa...@gmail.com> wrote:

> Thanks for the informative reply.  It leaves me wondering though why
> functionality that is not currently available via the standard maven install
> is listed in the plugin documentation?

My fault. :)  A while back I had the brilliant idea of publishing the
latest-and-greatest plugin docs with new features clearly marked as
"Since X.X".  It ended up causing too much confusion, so we switched
back to only publishing docs for the latest release.

The next time the dependency plugin is released, the docs for
2.0-alpha-5 will be published, and they will stay on the site until
the next version is ready.

(I can't do it from here, but someone could check out the tag for
2.0-alpha-4 and deploy the site... might need to update the parent pom
locally to v10 to pick up recent changes.)

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: dependency:tree not working in maven 2.0.7

Posted by bryan ward <wa...@gmail.com>.
Hi,

Thanks for the informative reply.  It leaves me wondering though why
functionality that is not currently available via the standard maven install
is listed in the plugin documentation?  

Thanks,

Bryan



Wayne Fay wrote:
> 
> Assuming the plugin has been released, you have two options:
> 1. Specify the plugin version in your pom.
> 2. Use the "full" name of the plugin on the command line:
> mvn groupId:artifactId:version:goal eg
> mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5:tree
> 
> Unfortunately, this plugin version is still in development, so this is
> not sufficient. You can see the latest versions here:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/
> 
> If you must use this new version, you will need to add the Apache
> snapshot repo to your pom or settings.xml, or pull the code from SVN
> and build/install it locally.
> 
> Wayne
> 
> On 11/27/07, bryan ward <wa...@gmail.com> wrote:
>>
>> I looked in my local repository and it currently has version 2.0-alpha-4
>> of
>> the dependency plugin.  Do you know how A) it chose to use 2.0-alpha-4
>> and
>> B) how do I change it to use alpha-5 (or the latest available).
>>
>> Thanks!
>>
>> Bryan
>>
>>
>>
>> dennisl-2 wrote:
>> >
>> > You need at least version 2.0-alpha-5 of the dependency-plugin. The
>> tree
>> > goal was introduced in that version as indicated here:
>> >
>> > http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
>> >
>> > bryan ward wrote:
>> >> Hi,
>> >>
>> >> I would like to run some of the dependency goals listed in the
>> >> documentation
>> >>
>> >> http://maven.apache.org/plugins/maven-dependency-plugin/
>> >>
>> >> however when I do, I get an error stating that the goal cannot be
>> found?
>> >> Does anyone know why this is?
>> >>
>> >>
>> >> /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree
>> >> + Error stacktraces are turned on.
>> >> [INFO] Scanning for projects...
>> >> [INFO] Searching repository for plugin with prefix: 'dependency'.
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [ERROR] BUILD FAILURE
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [INFO] Required goal not found: dependency:tree
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [INFO] Trace
>> >> org.apache.maven.BuildFailureException: Required goal not found:
>> >> dependency:tree
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
>> >> cutor.java:1538)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
>> >> aultLifecycleExecutor.java:386)
>> >>         at
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
>> >> :138)
>> >>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>> >>         at
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >>         at
>> >>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >>         at
>> >>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> >>         at java.lang.reflect.Method.invoke(Method.java:585)
>> >>         at
>> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> >>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> >>         at
>> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> >>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [INFO] Total time: < 1 second
>> >> [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007
>> >> [INFO] Final Memory: 2M/4M
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >>
>> >>
>> >
>> >
>> > --
>> > Dennis Lundberg
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13979033
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13980965
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: dependency:tree not working in maven 2.0.7

Posted by Wayne Fay <wa...@gmail.com>.
Assuming the plugin has been released, you have two options:
1. Specify the plugin version in your pom.
2. Use the "full" name of the plugin on the command line:
mvn groupId:artifactId:version:goal eg
mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5:tree

Unfortunately, this plugin version is still in development, so this is
not sufficient. You can see the latest versions here:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/

If you must use this new version, you will need to add the Apache
snapshot repo to your pom or settings.xml, or pull the code from SVN
and build/install it locally.

Wayne

On 11/27/07, bryan ward <wa...@gmail.com> wrote:
>
> I looked in my local repository and it currently has version 2.0-alpha-4 of
> the dependency plugin.  Do you know how A) it chose to use 2.0-alpha-4 and
> B) how do I change it to use alpha-5 (or the latest available).
>
> Thanks!
>
> Bryan
>
>
>
> dennisl-2 wrote:
> >
> > You need at least version 2.0-alpha-5 of the dependency-plugin. The tree
> > goal was introduced in that version as indicated here:
> >
> > http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
> >
> > bryan ward wrote:
> >> Hi,
> >>
> >> I would like to run some of the dependency goals listed in the
> >> documentation
> >>
> >> http://maven.apache.org/plugins/maven-dependency-plugin/
> >>
> >> however when I do, I get an error stating that the goal cannot be found?
> >> Does anyone know why this is?
> >>
> >>
> >> /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'dependency'.
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Required goal not found: dependency:tree
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.BuildFailureException: Required goal not found:
> >> dependency:tree
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
> >> cutor.java:1538)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
> >> aultLifecycleExecutor.java:386)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
> >> :138)
> >>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>         at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:585)
> >>         at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>         at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: < 1 second
> >> [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007
> >> [INFO] Final Memory: 2M/4M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >>
> >>
> >
> >
> > --
> > Dennis Lundberg
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13979033
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: dependency:tree not working in maven 2.0.7

Posted by bryan ward <wa...@gmail.com>.
I looked in my local repository and it currently has version 2.0-alpha-4 of
the dependency plugin.  Do you know how A) it chose to use 2.0-alpha-4 and
B) how do I change it to use alpha-5 (or the latest available).

Thanks!

Bryan



dennisl-2 wrote:
> 
> You need at least version 2.0-alpha-5 of the dependency-plugin. The tree 
> goal was introduced in that version as indicated here:
> 
> http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
> 
> bryan ward wrote:
>> Hi, 
>> 
>> I would like to run some of the dependency goals listed in the
>> documentation 
>> 
>> http://maven.apache.org/plugins/maven-dependency-plugin/
>> 
>> however when I do, I get an error stating that the goal cannot be found? 
>> Does anyone know why this is?
>> 
>> 
>> /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'dependency'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Required goal not found: dependency:tree
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.BuildFailureException: Required goal not found:
>> dependency:tree
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
>> cutor.java:1538)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
>> aultLifecycleExecutor.java:386)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
>> :138)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: < 1 second
>> [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007
>> [INFO] Final Memory: 2M/4M
>> [INFO]
>> ------------------------------------------------------------------------
>> 
>> 
> 
> 
> -- 
> Dennis Lundberg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13979033
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: dependency:tree not working in maven 2.0.7

Posted by Dennis Lundberg <de...@apache.org>.
You need at least version 2.0-alpha-5 of the dependency-plugin. The tree 
goal was introduced in that version as indicated here:

http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html

bryan ward wrote:
> Hi, 
> 
> I would like to run some of the dependency goals listed in the documentation 
> 
> http://maven.apache.org/plugins/maven-dependency-plugin/
> 
> however when I do, I get an error stating that the goal cannot be found? 
> Does anyone know why this is?
> 
> 
> /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'dependency'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Required goal not found: dependency:tree
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Required goal not found:
> dependency:tree
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
> cutor.java:1538)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
> aultLifecycleExecutor.java:386)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
> :138)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org