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

>>>>> "Tom Huybrechts" <[EMAIL PROTECTED]>:
>> The maven dependency plugin is your friend:
>> http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html

> Hm... interesting.  This URL was more clarifying for me:
>       http://maven.apache.org/plugins/maven-dependency-plugin/

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>
        <executions>
         <execution>
          <id>copy-dependencies</id>
          <phase>package</phase>
          <goals>
           <goal>copy-dependencies</goal>
          </goals>
          <configuration>
          </configuration>
         </execution>
        </executions>
      </plugin>

into the top level pom.xml file.  That gave me the following error
when using the "mvn install" target:
[INFO]    task-segment: [install]
[INFO] 
----------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[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".

I'm suspecting some spelling error, but haven't been able to spot it,
so far.


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

Reply via email to