How about a shell script like so:

mvn compile -DsomeProfile=bob
cp ./target/project-1.0.jar ./safedir/bob.jar
mvn compile -DsomeProfile=sally
cp ./target/project-1.0.jar ./safedir/sally.jar

--
Marc Dugger
[EMAIL PROTECTED]
Y!:  realtybaronhelp
MSN: [EMAIL PROTECTED]
AIM: realtybaronhelp
===========================
Search Over 3 Million Home Listings
http://www.realtybaron.com/search
===========================


On 3/5/07, Andy Thompson <[EMAIL PROTECTED]> wrote:
i've run into a situation where i've got a set of jars that are identical
except for a set of properties files.

what i would like to do is have a set of profiles that inserts the relevent
properties files into the jar.  And this isn't a problem.  But i would also
like to automate that process where the build creates a jar for each
profile.  for example, in the parent pom.xml - i'd like it to run
mvn compile -DsomeProfile=bob
mvn compile -DsomeProfile=sally

and generate sally.jar and bob.jar.

thoughts on how to approach this?

--
Andrew R. Thompson
Currently in D.C. Consulting


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to