You can use copy plugin
<plugin>
<groupId>de.qu.maven.maven-plugins</groupId>
<artifactId>copy-maven-plugin</artifactId>
<version>1.0.3</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-files</goal>
</goals>
<configuration>
<copyActions>
<copy-files>
<files>
<file>target/*.ear</file>
</files>
<targetDirectory>
${basedir}/../${deploy.path}/${jboss.deploy.path}
</targetDirectory>
</copy-files>
<copy-files>
<files>
<file>target/*.ear</file>
</files>
<targetDirectory>
${jboss.home}/${jboss.deploy.path}
</targetDirectory>
</copy-files>
</copyActions>
</configuration>
</execution>
</executions>
</plugin>
Thanks
nishant
-----Original Message-----
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 12:52 PM
To: Maven Users List
Subject: Re: Copying files after a build
I was thinking about this the other day, and ran across this blog that
might be helpful:
http://www.gridshore.nl/blog/index.php?/archives/46-Luntbuild-and-Maven-
2,-the-ideal-couple.html
Wayne
On 9/25/07, Gordon Dickens <[EMAIL PROTECTED]> wrote:
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]