You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Leo L <le...@gmail.com> on 2006/05/22 19:00:25 UTC
[M2] Can´t find web.xml
>
> Hi!
> I have a project that i want to package the EAR with maven.
>
My App.´s structure look like this
> - Project
> |
> |___ ejb
> |___ components
> |___ web
> |__ src
> |__ webRoot
> | |__ WEB-INF
> | | |__ my configuration
> files like web.xml that the maven looking for...
> | |
> | | ___ my .jsps
>
|
|__ pom.xml
>
> When i run mvn install i get a build error : Error Assembling WAR:
>
It can´t find web.xml
My pom.xml is like this:
<project>
....
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>war</goal>
</goals>
<configuration>
<warSourceDirectory>${basedir}\src</warSourceDirectory>
<webResources>
<resource>
<directory>${basedir}\WebRoot</directory>
<filtering>true</filtering>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</webResources>
</configuration>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
...
</project>
Any clue???
> Regards
> Leo
>