On 4/17/07, Shute, James <[EMAIL PROTECTED]> wrote:

The target layout I'm after is:

ear
|
|-lib
|  |-a.jar
|  |-b.jar
|
|-webapp
   |
   |-WEB-INF
       |-web.xml
       |-lib
           |-c.jar

I can't use warSourceExcludes as AFAIK excludes take precedence over

james,

I think you need to look at the bottom of
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html

in particular:

<dependencies>
   <dependency>
     <groupId>org.foo</groupId>
     <artifactId>bar-jar1</artifactId>
     <version>${pom.version}</version>
     <optional>true</optional>
     <!-- goes in manifest classpath, but not included in WEB-INF/lib -->
   </dependency>
   <dependency>
     <groupId>org.foo</groupId>
     <artifactId>bar-jar2</artifactId>
     <version>${pom.version}</version>
     <!-- goes in manifest classpath, AND included in WEB-INF/lib -->
   </dependency>
   <dependency>
     <groupId>org.foo</groupId>
     <artifactId>bar-jar1</artifactId>
     <version>${pom.version}</version>
     <scope>provided</scope>
     <!-- excluded from manifest classpath, and excluded from WEB-INF/lib -->
   </dependency>

Jerome

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

Reply via email to