>>>>> Steinar Bang <[EMAIL PROTECTED]>:

> I have trouble getting it to work.

> I tried using it by putting
>   <build>
>     ...
>     <plugins>
>       ...
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-dependency-plugin</artifactId>
[snip!]
> into the top level pom.xml file.  That gave me the following error
> when using the "mvn install" target:
[snip!]
> [INFO] The plugin 'org.apache.maven.plugins:maven-dependency-plugin' does not 
> exist or no valid version could be found

> Running with "-e" as recommended, doesn't give much more information.

> Just doing "mvn dependency:copy-dependencies" from the command line,
> copied the mojo into my local maven repo, and then proceeded to pull
> all osgi bundles created by the project, together with the ones they
> depend on, from my local M2 repo and into target/dependency/
> subdirectories of the bundle projects'.

> But I still got the same error message when doing "mvn install".

That's because "mvn dependency:copy-dependencies" pulled in the
dependency-maven-plugin from org.codehaus.mojo, and not the
maven-dependency-plugin from apache.

This FAQ entry says they are the same but the apache one is the
recommended one.  
        http://maven.apache.org/plugins/maven-dependency-plugin/faq.html

However, since I can only find the mojo one, I'm currently going with
it, and see where it takes me.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to