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>