Hi Eric,

You may specify the path of your web.xml in your webapp by configuring maven-war-plugin

<build>
  ...
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-war-plugin</artifactId>
       <configuration>
         <webXml><!-- path-to-your-webxml --></webXml>
       </configuration>
     </plugin>
   </plugins>
</build>

You dont have to specify your <outputDirectory>, the classes get automatically copied in your /WEB-INF/classes.

Hope this works for you.

-allan

[EMAIL PROTECTED] wrote:

Trying to build a WAR file from a non-standard directory structure.
projectA
    - src
    - Web Content
           - images
           - javascript
           - theme
           - WEB-INF
                     - lib
                     - web.xml

Here is the relevent portion of my pom.xml file
 <build>
       <sourceDirectory>src</sourceDirectory>
       <outputDirectory>Web Content/WEB-INF/classes</outputDirectory>
       <finalName>ic-signon</finalName>
 </build>

When I run "mvn package" I get this error:
Embedded error: Deployment descriptor: C:\myWorkspace\projectA\target\projectA\WEB-INF\web.xml does not exist.
and the directory structure that is built looks like this:

- target  (at the same level as the src directory above)
      - projectA
              - WEB-INF
                      - classes
                             - com
                                    - foo
                                           - bar
                                                  - foo_bar.class
                       - lib
                             - jar1.jar
                             - jar2.jar


How do I get everything under the "Web Content" directory ( the javascript, theme, images and the WEB-XML directories) to be placed under the "target/projectA" directory?


------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.5/212 - Release Date: 12/23/2005

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

Reply via email to