Or some code like this in your project.properties?
#
# maven jar plugins configuration properties
#
maven.jar.includes=com/nhc/cms/client/MappingPortClient.class\
,port_mapping_strings*.properties\
,com/nhc/cms/i18n/I18nUtil.class\
,com/nhc/cms/business/data/PortMappingTO.class\
,com/nhc/cms/business/*Exception.class\
,com/nhc/cms/business/equipment/EquipementType.class\
,com/nhc/cms/business/data/equipement/*.class\
,com/nhc/cms/business/data/*.class
This lists what will be included in your jar when running the jar:jar goal.
Eric
Ashutosh Kumar wrote:
Yes I am trying to use maven jar plugin only. But how to use includes ,
excludes etc I am not getting. Can u send me a sample code.
Regds
Ashutosh
-----Original Message-----
From: dan tran [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 2:09 AM
To: Maven Users List
Subject: Re: creating jar files with excludes and includes
Have you given maven-jar-plugin doc a look?
http://maven.apache.org/reference/plugins/jar/
-cheers
-D
On Fri, 17 Sep 2004 21:12:59 +0530, Ashutosh Kumar
<[EMAIL PROTECTED]> wrote:
Hi
I want to know how to make jar files in maven . I use to do in ant
this
way(see below). How same thing I should do in Maven?
Thanx & Regds
Ashutosh
<goal name="compile_pcmejb">
<!--
<javac srcdir="${src.root}" destdir="${build.temp.dir}"
-->
<javac srcdir="${src.root}"
destdir="${build.pcm.classes.dir}"
includes="com/**/pcm/people/**,com/**/pcm/services/**,com/**/pcm/admin/*
*,com/**/pcm/dataobjects/**"
failonerror="true"
verbose="off"
debug="true"
debuglevel="lines,vars,source"
classpathref="project.classpath">
</javac>
<attainGoal name="create_temp_pcmejbjar"/>
</goal>
<preGoal name="compile_pcmejb">
<attainGoal name="compile_cfmcore"/>
</preGoal>
<goal name="create_temp_pcmejbjar">
<!-- KRM probably need to rename this to
pcmejb_wl81.jar
in the future
to support different versions of Weblogic as we go
further along-->
<jar jarfile="${build.lib.dir}/pcmejb.jar">
<!-- Include all the Remote,Home Interfaces and
Beans for PCM application -->
<fileset dir="${build.pcm.classes.dir}">
<include
name="com/cfm/pcm/**/CFM*Session.class"/>
<include
name="com/cfm/pcm/**/CFM*SessionBean.class"/>
<include
name="com/cfm/pcm/**/CFM*SessionHome.class"/>
<include
name="com/cfm/pcm/**/CFM*Bean.class"/>
<!-- just to eliminate web bean
classes-->
<exclude name="com/cfm/pcm/web/**/*"/>
<exclude
name="com/cfm/pcm/**/CFMSession.class"/>
</fileset>
<metainf dir="${build.temp.dir}/META-INF">
</metainf>
</jar>
</goal>
<preGoal name="create_temp_pcmejbjar">
<attainGoal name="create_tempdir_copyejbxml"/>
</preGoal>
---------------------------------------------------------------------
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]