Greg Thompson wrote:
I have a packaging=jar project for which I'd like to generate two jars: one non-debug (the default) and one debug (w/ classifier="debug"). Is this possible? I've looked at trying to run the compiler:compile goal twice into different output directories, but that doesn't seem possible (outputDirectory is readonly and is set to ${project.build.outputDirectory}). Must I engage in some trickery whereby I bind two compiler:compile runs to the compile phase with a jar:jar and some ant junk to nuke the target/classes directory in between?
We use the maven-antrun-plugin to get ant to create some special files for us, based on the same compile output. The small piece of ant calls the jar task, including the specific files we need.
The resulting jar from ant is then made known to maven (and thus installed/deployed into repositories, etc) using the build-helper-maven-plugin.
Regards, Graham --
smime.p7s
Description: S/MIME Cryptographic Signature
