Hi Hilco ,
Removed the target/work/outbound. Thanks for that.
Also is there any way we can replace hard coding with variable names?
I have below code and I want server path with variables.
<target>
<delete includeEmptyDirs="true" dir="C:/Tomcat6/webapps/outbound" />
<copy file="${project.build.directory}/outbound-1.0-SNAPSHOT.war"
tofile="C:/Tomcat6/webapps/outbound.war" />
</target>
Thanks,
Amol
-----Original Message-----
From: Hilco Wijbenga [mailto:[email protected]]
Sent: Tuesday, March 01, 2011 11:12 AM
To: Fuke, Amol
Cc: Maven Users List
Subject: Re: Unwanted jars getting copied
On 1 March 2011 05:29, Fuke, Amol <[email protected]> wrote:
> Thanks Hilco for the reply.
>
> We are using war plugin also;
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <webXml>conf/web.xml</webXml>
>
> <webappDirectory>target/work/outbound</webappDirectory>
> </configuration>
> </plugin>
>
> But it does not copy all the required jars into war so additionally we are
> using below dependency.
That seems highly unlikely unless you're not listing those "required"
JARs as dependencies?
P.S. Unless you have a specific reason to use target/work/outbound, I
would suggest you go with the default. Less to maintain means less
work. :-)