figured it out.. use the <resources> element under the <build> to specify which files to include in the jar lifecycle.
thanks. -----Original Message----- From: Rizwan Merchant [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 10:30 AM To: Maven Users List Subject: RE: maven2: creatin jar files thats exactly what I am looking for. I cant find any documentation detailing how I can set include/exclude options, etc. I looked at the jar plugin for maven2, and it says nothing about these options. Am I missing something?? Thanks, -Riz. -----Original Message----- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 7:07 PM To: Maven Users List Subject: Re: maven2: creatin jar files Try to walk thru http://maven.apache.org/maven2/getting-started.html to create a jar file .. then you can taylor your own by adding your own source. There should be option to allow you to include/eclude file to compille -D On 8/10/05, Rizwan Merchant <[EMAIL PROTECTED]> wrote: > > Hi, > How I create a jar file from my targets such that I can specify which jar > files certain classes should go to? > Basiclly I have the following ant task and need to translate it into maven2 > > <target name="common_jar" depends="init"> > <jar destfile="${build.jar.dir}/common.jar" > basedir="${classes.dir}" > includes="com/alpha/common/**, com/alpha/framework/**, > com/alpha/util/**, com/alpha/edi/**, com/alpha/task/**, > com/alpha/cardswipe/**, com/alpha/license/**, com/alpha/uhmsearch/**, > com/alpha/print/**, com/alpha/alert/**,com/activetree/editor/**"/> > </target> > > Can someone show me an example? thanks. > > -Riz. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
