Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Java-SCA-M2
-
None
Description
Hi,
This is the first cut for the Maven plugin for the Tuscany war plugin. The plugin is attached to the packaged phase and works on the WAR file produced by the Maven WAR plugin. It accepts the boot and extension libraries as configuration parameteres and adds them to the original WAR at relavant locations. Outstanding stuff,
<li>Verify the presence of the required context listeners in web XML and add them if not present.</li>
<li>Defaults handling, don't know what the defaults are </li>
Here is a usage pattern,
<code>
<project>
<modelVersion>4.0.0</modelVersion>
<artifactId>MyWar</artifactId>
<packaging>war</packaging>
<groupId>MyCompany</groupId>
<description>My War</description>
<version>1.0</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.tuscany</groupId>
<artifactId>tuscany-war-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>tuscany-war</id>
<goals>
<goal>tuscany-war</goal>
</goals>
</execution>
</executions>
<configuration>
<bootLibs>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.2</version>
</dependency>
</bootLibs>
<extensions>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2</version>
</dependency>
</extensions>
</configuration>
</plugin>
</plugins>
</build>
</project>
</code>