I do this to build a jar for my unit tests in addition to the default jar
created by Maven (sans unit test classes).
"maven java:jartest" builds the jar, and this goal forces the test:compile
goal to be reached first.  There may be a better way, but this works for me.

<goal name="java:jartest">
        <attainGoal name="test:compile"/>
        <jar
jarfile="${maven.build.dir}/${pom.id}-test-${pom.currentVersion}.jar"
basedir="${maven.build.dir}/test-classes"/>
</goal>

-----Original Message-----
From: Graham Leggett [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 10:36 AM
To: Maven Users List
Subject: Building multiple jars in a project


Hi all,

 From reading the docs, it seems to describe a goal to build a single 
jar. In my project I need to build two or three separate jar files - how 
do I get maven to do this?

Regards,
Graham
-- 
-----------------------------------------
[EMAIL PROTECTED]               "There's a moon
                                        over Bourbon Street
                                                tonight..."


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
___________________________________________________________________________
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is 
for the sole use of the intended recipient(s) and may contain confidential 
and privileged information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.

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

Reply via email to