[ 
http://jira.codehaus.org/browse/MWAR-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124156
 ] 

Jene Jasper commented on MWAR-146:
----------------------------------

Finally create the project app pom and optionally exclude webapp packaged 
shared dependencies, for example:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>

<parent>
<groupId>nl.abz</groupId>
<artifactId>test</artifactId>
<version>v0100</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>nl.abz.test</groupId>
<artifactId>test-app</artifactId>
<packaging>ear</packaging>
<name>Test project App</name>

<dependencies>
    <dependency>
      <groupId>nl.abz.test</groupId>
      <artifactId>test-webapp</artifactId>
      <type>war</type>
      <version>${project.version}</version>
    </dependency>
</dependency>
</dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
          <defaultJavaBundleDir>APP-INF/lib/</defaultJavaBundleDir>
          <modules>
            <jarModule>
              <groupId>struts</groupId>
              <artifactId>struts</artifactId>
              <excluded>true</excluded>
            </jarModule>            
            <webModule>
              <groupId>nl.abz.test</groupId>
              <artifactId>test-webapp</artifactId>
              <contextRoot>/test-portal</contextRoot>
            </webModule>
          </modules>
        </configuration>       
      </plugin>
    </plugins>    
  </build>
</project>

Note: the defaultJavaBundleDir is set to APP-INF/lib/ so that we do not need to 
specify does files in the web-app MANIFEST.MF

> Better support for skinny wars
> ------------------------------
>
>                 Key: MWAR-146
>                 URL: http://jira.codehaus.org/browse/MWAR-146
>             Project: Maven 2.x War Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.0.2
>            Reporter: Jene Jasper
>
> Added a warLibIncludes element to include only the specified list of jars 
> because the warSourceExcludes is never finished when you add new dependencies 
> to a project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to