You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Carlos Ortiz <ch...@gmail.com> on 2009/07/09 22:30:52 UTC

Copy goal result to given path

Hi, Is there any way to copy all package goal result to a single path for a
multimodule project

for example a pom with 3 modules each module is a single jar , so i like to
be copy at
C:\target\module1.jar, C:\target\module2.jar, C:\target\module3.jar instead
of c:\module1\target\module1.jar ...

Re: Copy goal result to given path

Posted by Anders Hammar <an...@hammar.net>.
Not sure what you want to accomplish, but the way to do this (sort of)
is to create a forth module (or possibly in the top pom) where you
copy the artifacts of the three modules through the dependency plugin
(http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html).

Please remember that in Maven, the general idea is that one project
should just produce one artifact. There is nothing wrong with having
lots of Maven projects.

/Anders

On Thu, Jul 9, 2009 at 22:30, Carlos Ortiz<ch...@gmail.com> wrote:
> Hi, Is there any way to copy all package goal result to a single path for a
> multimodule project
>
> for example a pom with 3 modules each module is a single jar , so i like to
> be copy at
> C:\target\module1.jar, C:\target\module2.jar, C:\target\module3.jar instead
> of c:\module1\target\module1.jar ...
>

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