Hi!
I have a problem and i can´t fixed it.

I can´t find web.xml when i try to packaging my war.
My App. is an EAR, which i have an ejb packaging, jar and a War:

When I packaging the war, i get a Build Error: Error assembling War...

I saw the thread
http://www.nabble.com/War+plugin+and+filtering+webapp+files-t1617964.html and
didn´t help me, because some configurations that i saw was for Maven 1, and
i´m using mave 2.

Here is my war(web) pom.xml
...
<build>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-war-plugin</artifactId>
       <executions>
         <execution>
           <goals>
             <goal>war</goal>
           </goals>
           <configuration>
             <warSourceDirectory>src</warSourceDirectory>
             <webResources>
               <resource>
                 <directory>WebRoot</directory>
                 <filtering>false</filtering>
                 <includes>
                   <include>**/*.xml</include>
                 </includes>
               </resource>
             </webResources>
           </configuration>
         </execution>
       </executions>
     </plugin>
     ...
   </plugins>
</build>

How can I fixed it??
Anyone can send me a pom.xml example with a configuration that works.
Any help would be great...

Regards,

Leo

Reply via email to