views:

47

answers:

1

I have a Maven POM set up with multiple build profiles. For one profile, I want to copy, move, or build the JAR file that is generated in the target folder to another folder. How can this be achieved?

A: 

There is a similar question posted here Best practices for copying files with Maven.

Strawberry
Thanks, the ant task solved my problem. I was looking for an equivalent to ouptutDirectory in the root build element. This element doesn't exist within the build element that is within the profile element.
hoffmandirt