Somehow you are getting the old dependency-maven-plugin instead of the 
maven-dependency-plugin. Clear the /org/codehaus/mojo metadata from your local 
repo (and any internal proxies you have) and try again. This is already fixed 
for 2.0.7....doesn't help you now though ;-)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 4:08 AM
To: [email protected]
Subject: Error in maven-dependency:copy

Hello,

I'm trying to copy some specific artifacts using the 
maven-dependency-plugin (copy goal). However, it seems that the plugin 
does not to find some required parameters.

I'm doing sth very simple and straightforward from what I've read from 
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html
but it simply does not work...

Error log & plugin usage are just below,
Am I missing something or are there any bugs in the plugin ?

Thanks,
Hervé

=> Error log:

[INFO]    task-segment: [dependency:copy]
[INFO] 
----------------------------------------------------------------------------
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for 
'dependency:copy'

[0] inside the definition for plugin: 'dependency-maven-plugin'specify 
the following:

<configuration>
   ...
   <artifactItems>VALUE</artifactItems>
</configuration>.

[INFO] 
------------------------------------------------------------------------

=> Usage of this plugin in my pom.xml:

<plugin>
  <groupId>org.apache.maven.plugins</groupdId>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>2.0-alpha-4</version>
  <configuration>
   <artifactItems>
    <artifactItem>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>3.8.1</version>
     <type>jar</type>
    </artifactItem>
   </artifactItems>
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
</configuration>
</plugin>

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


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

Reply via email to