hi dan ,marco
i already tried the package level but it did not work for me
yes you are right that i have to insert it before war build but where i
do not know
in maven 1.X i did it calling prerequest=war:web then make my war but here
in maven 2.X i did not find any kind of that solution
yes marco you are right if i will define scope as a runtime then it will
not take the lib but still i have classes there
if you have solution then please forward to me
regards
Neeraj
On 10/7/06, dan tran <[EMAIL PROTECTED]> wrote:
packaging of the war is at package phase. So you are out of luck to
intercept it before the actual
war file is built.
-D
On 10/7/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
>
> hello,
> i suspect to have your war without lib you will need to define proper
> scope
> of your dependencies.... anyone pls correct me if i m wrong
>
> hth
> marco
>
> On 10/7/06, Neeraj Bisht <[EMAIL PROTECTED]> wrote:
> >
> > hi all
> > i want the war file without lib and classes for this i write
> ant
> > task and merze in my pom
> > the ant task as follow
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-antrun-plugin</artifactId>
> > <executions>
> > <execution>
> > <phase>package</phase>
> > <configuration>
> > <tasks>
> >
> > <delete failonerror="false" includeemptydirs="true">
> > <fileset dir="${project.build.dir}/${project.artifactId
> > }/WEB-INF/classes">
> > </fileset>
> > <fileset dir="${project.build.dir}/${project.artifactId
}/WEB-INF/lib">
> > </fileset>
> > </delete>
> >
> >
> > </tasks>
> > </configuration>
> > <goals>
> > <goal>run</goal>
> > </goals>
> > </execution>
> > </executions>
> > </plugin>
> >
> > it is working but i am unable to define the phase ,i mean at which
> > phase i
> > will call this plugin run goal so that i will get the war without lib
> and
> > classes
> >
> > if any one have alternative solution or know right phase is most
> welcome
> >
> >
> > Regards
> > Neeraj
> >
> >
>
>