<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1-beta-1</version>
<configuration>
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
If you then later in another pom.xml want to include this war and the excluded libraries:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>you war module name</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>you war module name</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
No comments:
Post a Comment