You most likely aren't using the pluginManagement section for your plugin
conf.

/Anders (mobile)

Den 2010 8 11 13:04 skrev "Joe Littlejohn" <[email protected]>:
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to