I think you are having this problem I described here: http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html#a840 6709
(assuming you are copying dependency:copy from the command line?) -----Original Message----- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:22 PM To: Maven Users List Subject: RE: 'dependency:copy' does not work >> Do you have <artifactItems> element defined in your configuration? Yes. Exactly as stated in the docs <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <type>jar</type> <overWrite>false</overWrite> <outputDirectory>${project.build.directory}/alternateLocation</outputDir ectory> <destFileName>optional-new-name.jar</destFileName> </artifactItem> </artifactItems> <outputDirectory>${project.build.directory}/wars</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> </plugin> >> -----Original Message----- >> From: Dan Tran [mailto:[EMAIL PROTECTED] >> Sent: den 5 februari 2007 22:52 >> To: Maven Users List >> Subject: Re: 'dependency:copy' does not work >> >> Do you have <artifactItems> element defined in your configuration? >> >> On 2/5/07, Riboe, Jens <[EMAIL PROTECTED]> wrote: >> > >> > I did a cut-and-paste from the docs of the dependency plug-in >> > >> > http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying >> > -artifacts.html >> > To troubleshoot my configuration of 'dependency:copy' >> > >> > However, I still get the same error as shown below. What am I doing >> > wrong and how is that reflected in the online docs? >> > >> > [INFO] >> > ------------------------------------------------------------------------ >> > [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>. >> > >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] For more information, run Maven with the -e switch >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Total time: 4 seconds >> > [INFO] Finished at: Mon Feb 05 22:18:41 GMT 2007 >> > [INFO] Final Memory: 8M/15M >> > [INFO] >> > ------------------------------------------------------------------------ >> > >> > >> > --------------------------------------------------------------------- >> > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
