Hi,

I'm having trouble using the dependency:copy and dependency:unpack
goals with Maven 2.2.1. I've been following this guide:
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html

The snippet from my POM looks like:

  <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <configuration>
                <artifactItems>
                        <artifactItem>
                                <groupId>junit</groupId>
                                <artifactId>junit</artifactId>
                                <version>3.8.1</version>
                                <type>jar</type>
                                <overWrite>true</overWrite>
                                <outputDirectory>junit</outputDirectory>
                                <destFileName>test</destFileName>
                        </artifactItem>
                </artifactItems>
        </configuration>
  </plugin>

I have not included the 'executions' element, so I should be able to
use the dependency goals from the cli (as far as I understand it).
However, when I run 'mvn dependency:copy' using the cli, I get:

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

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

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

I've checked my POM for other occurrances of maven-dependency-plugin,
and there are none.

Does anyone know why my configuration is being ignored?

Cheers!

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

Reply via email to