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 whe
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Mar 5, 2007, at 1:24 PM, Andy Thompson 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
proper
This is what classifiers are for:
maven-jar-plugin
${myClassifier}
... then for each profile:
profile1
profile1
Viola
Eric
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
Except that I believe he actually would like to construct builds for
multiple classifiers "in a single pass".
I think the profiles + classifiers + a batch file to run Mvn multiple
times with various profiles activated is the best way to do this.
Wayne
On 3/5/07, Eric Redmond <[EMAIL PROTECTED]>