war/pom.xml
This pom creates the WAR file that will host the web service if you're using Tomcat. It is not needed for OSGi deployment, but if you omit adding this file be sure to remove this module from the module list in the parent pom.xml.
<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">
<modelVersion>4.0.0</modelVersion>
<artifactId>dev-guide-wsdl-first-war</artifactId>
<name>-- Service WAR file</name>
<packaging>war</packaging>
<url>http://maven.apache.org</url>
<parent>
<groupId>org.talend.cxf-examples.dev-guide-wsdl-first</groupId>
<artifactId>dev-guide-wsdl-first</artifactId>
<version></version>
</parent>
<dependencies>
<dependency>
<groupId>org.talend.cxf-examples.dev-guide-wsdl-first</groupId>
<artifactId>dev-guide-wsdl-first-service</artifactId>
<version></version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
<webResources>
<resource>
<directory>../service/src/main/resources</directory>
<targetPath>WEB-INF/wsdl</targetPath>
<includes>
<include>*.wsdl</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
<!-- Name of the generated WAR file -->
<finalName>doubleit</finalName>
</build>
</project>