Use the maven-dependency-plugin copy mojo: http://maven.apache.org/plugins/maven-dependency-plugin
Copying files is exactly how it got started, but it can do much more than that now. -----Original Message----- From: Gordon Dickens [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 25, 2007 10:09 AM To: Maven Users List Subject: Copying files after a build Hello, I have a multi project build with Maven 2 and when it is complete, I want to copy several files to a common directory. Currently I am using the Ant plugin to do this. Is there a more "Maven appropriate" implementation? snippet <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>moveFiles</id> <phase>install</phase> <configuration> <tasks> ... <copy todir="somedir" flatten="true" overwrite="true" verbose="true" failonerror="true"> <fileset dir="commonbuildtreedir" includes="**/target/*-sa*.jar"/> <fileset dir="someotherdir" includes="**/target/*.zip"/> </copy> ... </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> Thanks, Gordon Dickens --------------------------------------------------------------------- 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]
