Thx Alexandre!

But i forgot to mention that i have my App. structure defined in the sources
repository and i can´t change that...  the structures is:

- Project
      |
      |___ ejb
      |___ components
      |___ web
                    |__ src
                    |__ webRoot
                                  |__ WEB-INF
                                  |               |__ my configuration
files like web.xml that the maven looking for...
                                  |
                                  | ___ my .jsps


I must keep this structure and packaging my war, i don´t have the defaults,
is because that i have the whole plugin configuration section.

Any clue!?

Regards
Leo

2006/5/22, Alexandre Poitras <[EMAIL PROTECTED]>:

Delete the whole plugin configuration section, you don't need if you
use the defaults which are ok in most situations. Then put your java
sources in src/main/java, web.xml in src/main/resources/WEB-INF and
your jsp or html pages in src/main/webapp. From there everything
should work.

On 5/22/06, Leo L <[EMAIL PROTECTED]> wrote:
> 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.htmland
> 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
>
>

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


Reply via email to