You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rizwan Merchant <ri...@alpha-it.com> on 2005/08/10 21:28:49 UTC
maven2: creatin jar files
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: maven2: creatin jar files
Posted by Rizwan Merchant <ri...@alpha-it.com>.
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:rizwan@alpha-it.com]
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:dantran@gmail.com]
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 <ri...@alpha-it.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: maven2: creatin jar files
Posted by Rizwan Merchant <ri...@alpha-it.com>.
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:dantran@gmail.com]
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 <ri...@alpha-it.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: maven2: creatin jar files
Posted by dan tran <da...@gmail.com>.
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 <ri...@alpha-it.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org