> -----Original Message-----
> From: Roberto Castro [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 15, 2004 3:03 PM
> To: [EMAIL PROTECTED]
> Subject: Dependency problens when generating war file
> 
> 
> Hi, all. I've been facing two problens generating a war file.
> Maven inserts jar files into war files with version number in 
> its name. To avoid this, I created a goal in maven.xml to 
> rename jar file, like this:
> <move 
> file="${maven.build.dir}/web-inf/WEB-INF/lib/commons-beanutils
> -${siloc_commons_beanutils_version}.jar"
>       
> tofile="${maven.build.dir}/web-inf/WEB-INF/lib/commons-beanuti
> ls.jar" overwrite="true"/>
> Is it the better way to do this?


First question is - why do you want to do this?
This is really something which is not needed.

> Second problem:
> To copy tld and xml files into war file, I do the following:
>       <build>
>               <nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress>
>               <sourceDirectory>src</sourceDirectory>
>               <resources>
>                       <resource>
>                               <directory>web/config</directory>
>                               <targetPath></targetPath>
>                               <includes>
>                                       <include>*.xml</include>
>                                       <include>*.tld</include>
>                               </includes>
>                       </resource>
>               </resources>
>       </build>
> 
> But maven copys tld and xml files into "WEB-INF/classes" 
> directory, insted of, "web-inf" directory.
> What can I do to solve this problem?
> Thank you all in advance for the help.
>       Regards,
> 

This is known limitation. we don't have yet a possibility of having
resources of web application (war plugin).
Resources are processed only by java plugin (test resources by test plugin).
This is indeed painful.

The simplest solution if you don't have to use resource filtering is to put
configuration files directly in the place where they 
should be in the war file:

e.g. src/main/webapp/WEB-INF

Michal

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to