Igor Deruga wrote:

Hello, Hugo!
I had such a problem too, though my project's structure is far from being "normal".


I can suggest adding this line:
<webXml>/home/sandbox/myproject-3.0/subproject/web-content/WEB-INF/web.xml</webXml>


inside the maven-war-plugin (just don't forget to change the path to your value). Here's the whole block from my pom.xml:

<build>
<finalName>gw-weather</finalName>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-alpha-2</version>
<configuration>
<warSourceDirectory>/home/sandbox/myproject-3.0/subproject/web-content/</warSourceDirectory>


<webXml>/home/sandbox/myproject-3.0/subproject/web-content/WEB-INF/web.xml</webXml>

       </configuration>
     </plugin>
   </plugins>
 </build>

if your web.xml is in ${warSourceDirectory}/WEB-INF/web.xml, it isn't necessary to define the webXml property.

And I think it isn't a good idea to define an absolute path for your properties. If you want to build your project in an other platform, it won't work.

If the problem can't be solved this way, could you please send the part of your pom.xml that is responsible for this error?

Sincerely
Igor Deruga.

Hugo Palma wrote:

I have a multimodule project where one of the modules is a web application therefor with war packaging.
The directory structure i use is the "normal" one with



--------------------------------------------------------------------- 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]



Reply via email to