cxf: pom.xml files, formatting
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 13 Dec 2015 18:19:12 +0000 (19:19 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 13 Dec 2015 18:19:12 +0000 (19:19 +0100)
cxf/web-services-spring-cxf-client/pom.xml
cxf/web-services-spring-cxf-globalxsds/pom.xml
cxf/web-services-spring-cxf-server/pom.xml
cxf/web-services-spring-cxf/pom.xml

index 31cf961..8c2ca58 100644 (file)
-<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>
-  <parent>
-    <artifactId>web-services-spring-cxf</artifactId>
-    <groupId>de.spring.webservices</groupId>
-    <version>1.0-SNAPSHOT</version>
-  </parent>
-  <artifactId>web-services-spring-cxf-client</artifactId>
-  <name>web-services-spring-cxf-client</name>
-  <url>http://gumartinm.name</url>
+<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>
+       <parent>
+               <artifactId>web-services-spring-cxf</artifactId>
+               <groupId>de.spring.webservices</groupId>
+               <version>1.0-SNAPSHOT</version>
+       </parent>
+       <artifactId>web-services-spring-cxf-client</artifactId>
+       <name>web-services-spring-cxf-client</name>
+       <url>http://gumartinm.name</url>
 
-  <properties>
-    <project.wsdl.sources.path>src/main/build-resources/wsdl</project.wsdl.sources.path>
-    <project.wsdl.target.path>${basedir}/target/generated-sources/src/main/java</project.wsdl.target.path>
-    <project.bindings.path>src/main/build-resources/bindings</project.bindings.path>
-    <!-- Requires absolute path (because of that I am using ${basedir} -->
-    <project.catalogs.path>${basedir}/src/main/build-resources/catalogs</project.catalogs.path>
-  </properties>
+       <properties>
+               <project.wsdl.sources.path>src/main/build-resources/wsdl</project.wsdl.sources.path>
+               <project.wsdl.target.path>${basedir}/target/generated-sources/src/main/java</project.wsdl.target.path>
+               <project.bindings.path>src/main/build-resources/bindings</project.bindings.path>
+               <!-- Requires absolute path (because of that I am using ${basedir} -->
+               <project.catalogs.path>${basedir}/src/main/build-resources/catalogs</project.catalogs.path>
+       </properties>
 
-  <dependencies>
-    <dependency>
-      <groupId>org.springframework.ws</groupId>
-      <artifactId>spring-ws-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.ws</groupId>
-      <artifactId>spring-xml</artifactId>
-    </dependency>
-    <dependency>
-        <groupId>org.jdom</groupId>
-        <artifactId>jdom</artifactId>
-    </dependency>
+       <dependencies>
+               <dependency>
+                       <groupId>org.springframework.ws</groupId>
+                       <artifactId>spring-ws-core</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.ws</groupId>
+                       <artifactId>spring-xml</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.jdom</groupId>
+                       <artifactId>jdom</artifactId>
+               </dependency>
 
 
-    <!-- Global types -->
-    <dependency>
-        <groupId>de.spring.webservices</groupId>
-        <artifactId>web-services-spring-cxf-globalxsds</artifactId>
-        <version>${project.version}</version>
-    </dependency>
+               <!-- Global types -->
+               <dependency>
+                       <groupId>de.spring.webservices</groupId>
+                       <artifactId>web-services-spring-cxf-globalxsds</artifactId>
+                       <version>${project.version}</version>
+               </dependency>
 
 
-    <!-- Required by spring-ws-core -->
-    <dependency>
-        <groupId>wsdl4j</groupId>
-        <artifactId>wsdl4j</artifactId>
-    </dependency>
+               <!-- Required by spring-ws-core -->
+               <dependency>
+                       <groupId>wsdl4j</groupId>
+                       <artifactId>wsdl4j</artifactId>
+               </dependency>
 
-    <!-- Required by jaxb2-basics as specified: 
-         http://confluence.highsource.org/display/J2B/Using+JAXB2+Basics+Plugins+with+CXF
-    -->
-    <dependency>
-      <groupId>org.jvnet.jaxb2_commons</groupId>
-      <artifactId>jaxb2-basics-runtime</artifactId>
-      <version>0.9.4</version>
-    </dependency>
+               <!-- Required by jaxb2-basics as specified: http://confluence.highsource.org/display/J2B/Using+JAXB2+Basics+Plugins+with+CXF -->
+               <dependency>
+                       <groupId>org.jvnet.jaxb2_commons</groupId>
+                       <artifactId>jaxb2-basics-runtime</artifactId>
+                       <version>0.9.4</version>
+               </dependency>
 
-    <!-- Unitary and integration tests -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.ws</groupId>
-      <artifactId>spring-ws-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
+               <!-- Unitary and integration tests -->
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>spring-test</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.ws</groupId>
+                       <artifactId>spring-ws-test</artifactId>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
 
-  <build>
-    <finalName>${project.artifactId}</finalName>
-    <resources>
-        <resource>
-            <directory>${basedir}/src/main/resources/</directory>
-            <includes>
-                <include>**/*.*</include>
-            </includes>
-        </resource>
-    </resources>
-    <plugins>
-        <!-- Generate code from wsdl files:
-             We could use maven-jaxb2-plugin in order to generate Java classes from WSDL files but
-             this plugin seems more useful so, I keep using it. Besides, it is based on Apache CXF which
-             as well, uses jaxb.
+       <build>
+               <finalName>${project.artifactId}</finalName>
+               <resources>
+                       <resource>
+                               <directory>${basedir}/src/main/resources/</directory>
+                               <includes>
+                                       <include>**/*.*</include>
+                               </includes>
+                       </resource>
+               </resources>
+               <plugins>
+                       <!-- Generate code from wsdl files: We could use maven-jaxb2-plugin in 
+                               order to generate Java classes from WSDL files but this plugin seems more 
+                               useful so, I keep using it. Besides, it is based on Apache CXF which as well, 
+                               uses jaxb. See: http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html -->
+                       <plugin>
+                               <groupId>org.apache.cxf</groupId>
+                               <artifactId>cxf-codegen-plugin</artifactId>
+                               <version>3.1.0</version>
+                               <executions>
+                                       <execution>
+                                               <id>generate-sources-from-wsdl</id>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>wsdl2java</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <fork>true</fork>
+                                                       <sourceRoot>${project.wsdl.target.path}</sourceRoot>
+                                                       <wsdlOptions>
+                                                               <wsdlOption>
+                                                                       <!-- <wsdl>${project.wsdl.sources.path}/example.wsdl</wsdl> -->
+                                                                       <wsdl>${project.wsdl.sources.path}/example.wsdl</wsdl>
+                                                                       <bindingFiles>
+                                                                               <bindingFile>${project.bindings.path}/custombinding.xjb</bindingFile>
+                                                                       </bindingFiles>
+                                                                       <extraargs>
+                                                                               <extraarg>-xjc-Xinheritance</extraarg>
+                                                                               <extraarg>-xjc-Xannotate</extraarg>
+                                                                               <extraarg>-catalog</extraarg>
+                                                                               <extraarg>${project.catalogs.path}/catalog.cat</extraarg>
+                                                                               <extraarg>-verbose</extraarg>
+                                                                       </extraargs>
+                                                               </wsdlOption>
+                                                       </wsdlOptions>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                               <dependencies>
+                                       <!-- We make this plugin work with this jaxb2 version. This particular 
+                                               version let us generate inherited classes using the -Xinheritance argument. 
+                                               DO NOT FORGET: We can use <inheritance:implements> in xsd files or by means 
+                                               of custom bindings (see custombinding.xjb) This is useful when you may not 
+                                               modify xsd files because they are generated by other person or machine. -->
+                                       <dependency>
+                                               <groupId>org.jvnet.jaxb2_commons</groupId>
+                                               <artifactId>jaxb2-basics</artifactId>
+                                               <version>0.9.4</version>
+                                       </dependency>
 
-             See: http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html
-        -->
-        <plugin>
-            <groupId>org.apache.cxf</groupId>
-            <artifactId>cxf-codegen-plugin</artifactId>
-            <version>3.1.0</version>
-            <executions>
-                <execution>
-                    <id>generate-sources-from-wsdl</id>
-                    <phase>generate-sources</phase>
-                    <goals>
-                        <goal>wsdl2java</goal>
-                    </goals>
-                    <configuration>
-                        <fork>true</fork>
-                        <sourceRoot>${project.wsdl.target.path}</sourceRoot>
-                        <wsdlOptions>
-                            <wsdlOption>
-                                <!--
-                                <wsdl>${project.wsdl.sources.path}/example.wsdl</wsdl>
-                                -->
-                                <wsdl>${project.wsdl.sources.path}/example.wsdl</wsdl>
-                                <bindingFiles>
-                                    <bindingFile>${project.bindings.path}/custombinding.xjb</bindingFile>
-                                </bindingFiles>
-                                <extraargs>
-                                    <extraarg>-xjc-Xinheritance</extraarg>
-                                    <extraarg>-xjc-Xannotate</extraarg>
-                                    <extraarg>-catalog</extraarg>
-                                    <extraarg>${project.catalogs.path}/catalog.cat</extraarg>
-                                    <extraarg>-verbose</extraarg>
-                                </extraargs>
-                            </wsdlOption>
-                        </wsdlOptions>
-                    </configuration>
-                 </execution>
-            </executions>
-            <dependencies>
-                 <!-- We make this plugin work with this jaxb2 version.
-                      This particular version let us generate inherited classes using
-                      the -Xinheritance argument.
-     
-                      DO NOT FORGET: We can use <inheritance:implements> in xsd files or by means 
-                      of custom bindings (see custombinding.xjb) This is useful when you may not modify
-                      xsd files because they are generated by other person or machine.
-                 -->
-                 <dependency>
-                     <groupId>org.jvnet.jaxb2_commons</groupId>
-                     <artifactId>jaxb2-basics</artifactId>
-                     <version>0.9.4</version>
-                 </dependency>
-
-                 <!-- We make this plugin work with this jaxb2 version.
-                      This particular version let us generate annotated classes using
-                      the -Xannotate argument.
-
-                      DO NOT FORGET: We can use <annox:annotate> in xsd files or by means 
-                      of custom bindings like I did with <inheritance:implements> (see custombinding.xjb)
-                      This is useful when you may not modify xsd files because they are generated
-                      by other person or machine.
-                 -->
-                 <dependency>
-                     <groupId>org.jvnet.jaxb2_commons</groupId>
-                     <artifactId>jaxb2-basics-annotate</artifactId>
-                     <version>1.0.1</version>
-                 </dependency>
-             </dependencies>
-        </plugin>
-        <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>build-helper-maven-plugin</artifactId>
-                <version>1.9.1</version>
-                <executions>
-                    <execution>
-                        <id>add-source</id>
-                        <phase>generate-sources</phase>
-                        <goals>
-                            <goal>add-source</goal>
-                        </goals>
-                        <configuration>
-                            <sources>
-                                <source>${project.wsdl.target.path}</source>
-                            </sources>
-                        </configuration>
-                    </execution>
-                </executions>
-          </plugin>
-    </plugins>
-  </build>
+                                       <!-- We make this plugin work with this jaxb2 version. This particular 
+                                               version let us generate annotated classes using the -Xannotate argument. 
+                                               DO NOT FORGET: We can use <annox:annotate> in xsd files or by means of custom 
+                                               bindings like I did with <inheritance:implements> (see custombinding.xjb) 
+                                               This is useful when you may not modify xsd files because they are generated 
+                                               by other person or machine. -->
+                                       <dependency>
+                                               <groupId>org.jvnet.jaxb2_commons</groupId>
+                                               <artifactId>jaxb2-basics-annotate</artifactId>
+                                               <version>1.0.1</version>
+                                       </dependency>
+                               </dependencies>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>build-helper-maven-plugin</artifactId>
+                               <version>1.9.1</version>
+                               <executions>
+                                       <execution>
+                                               <id>add-source</id>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>add-source</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sources>
+                                                               <source>${project.wsdl.target.path}</source>
+                                                       </sources>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
 </project>
 
index c8b0db0..691a780 100644 (file)
-<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>
-  <parent>
-    <artifactId>web-services-spring-cxf</artifactId>
-    <groupId>de.spring.webservices</groupId>
-    <version>1.0-SNAPSHOT</version>
-  </parent>
-  <artifactId>web-services-spring-cxf-globalxsds</artifactId>
-  <name>web-services-spring-cxf-globalxsds</name>
-  <url>http://gumartinm.name</url>
+<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>
+       <parent>
+               <artifactId>web-services-spring-cxf</artifactId>
+               <groupId>de.spring.webservices</groupId>
+               <version>1.0-SNAPSHOT</version>
+       </parent>
+       <artifactId>web-services-spring-cxf-globalxsds</artifactId>
+       <name>web-services-spring-cxf-globalxsds</name>
+       <url>http://gumartinm.name</url>
 
-  <properties>
-    <project.xsd.schemas.source.path>src/main/resources</project.xsd.schemas.source.path>
-    <project.xsd.schemas.target.path>${basedir}/target/generated-sources/src/main/java</project.xsd.schemas.target.path>
-    <project.xsd.schemas.package.name>de.spring.webservices.auto</project.xsd.schemas.package.name>
-    <project.bindings.path>src/main/build-resources/bindings</project.bindings.path>
-  </properties>
+       <properties>
+               <project.xsd.schemas.source.path>src/main/resources</project.xsd.schemas.source.path>
+               <project.xsd.schemas.target.path>${basedir}/target/generated-sources/src/main/java</project.xsd.schemas.target.path>
+               <project.xsd.schemas.package.name>de.spring.webservices.auto</project.xsd.schemas.package.name>
+               <project.bindings.path>src/main/build-resources/bindings</project.bindings.path>
+       </properties>
 
-  <dependencies>
+       <dependencies>
 
-    <!-- Unitary and integration tests -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
+               <!-- Unitary and integration tests -->
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
 
-  <build>
-    <finalName>${project.artifactId}</finalName>
-    <resources>
-        <resource>
-            <directory>${basedir}/src/main/resources</directory>
-            <includes>
-                <include>**/*.*</include>
-            </includes>
-        </resource>
-    </resources>
-    <plugins>
-        <!-- Generate code from xsd files:
-             We could use maven-jaxb2-plugin in order to generate Java classes from XSD files but
-             this plugin seems more useful so, I keep using it. Besides, it is based on Apache CXF which
-             as well, uses jaxb.
-
-             See: http://cxf.apache.org/cxf-xjc-plugin.html
-        -->
-        <plugin>
-            <groupId>org.apache.cxf</groupId>
-            <artifactId>cxf-xjc-plugin</artifactId>
-            <version>3.0.3</version>
-            <configuration>
-                <fork>true</fork>
-                <extensions>
-                    <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:3.0.3</extension>
-                </extensions>
-            </configuration>
-            <executions>
-                <execution>
-                    <id>generate-sources-from-xsd</id>
-                    <phase>generate-sources</phase>
-                    <goals>
-                        <goal>xsdtojava</goal>
-                    </goals>
-                    <configuration>
-                        <sourceRoot>${project.xsd.schemas.target.path}</sourceRoot>
-                        <xsdOptions>
-                            <xsdOption>
-                                <extension>true</extension>
-                                <xsd>${project.xsd.schemas.source.path}/parent.xsd</xsd>
-                                <bindingFile>${project.bindings.path}/custombinding.xjb</bindingFile>
-                                <packagename>${project.xsd.schemas.package.name}</packagename>
-                            </xsdOption>
-                        </xsdOptions>
-                    </configuration>
-                </execution>
-            </executions>
-         </plugin>
-        <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>build-helper-maven-plugin</artifactId>
-                <version>1.9.1</version>
-                <executions>
-                    <execution>
-                        <id>add-source</id>
-                        <phase>generate-sources</phase>
-                        <goals>
-                            <goal>add-source</goal>
-                        </goals>
-                        <configuration>
-                            <sources>
-                                <source>${project.xsd.schemas.target.path}</source>
-                            </sources>
-                        </configuration>
-                    </execution>
-                </executions>
-          </plugin>
-    </plugins>
-  </build>
+       <build>
+               <finalName>${project.artifactId}</finalName>
+               <resources>
+                       <resource>
+                               <directory>${basedir}/src/main/resources</directory>
+                               <includes>
+                                       <include>**/*.*</include>
+                               </includes>
+                       </resource>
+               </resources>
+               <plugins>
+                       <!-- Generate code from xsd files: We could use maven-jaxb2-plugin in 
+                               order to generate Java classes from XSD files but this plugin seems more 
+                               useful so, I keep using it. Besides, it is based on Apache CXF which as well, 
+                               uses jaxb. See: http://cxf.apache.org/cxf-xjc-plugin.html -->
+                       <plugin>
+                               <groupId>org.apache.cxf</groupId>
+                               <artifactId>cxf-xjc-plugin</artifactId>
+                               <version>3.0.3</version>
+                               <configuration>
+                                       <fork>true</fork>
+                                       <extensions>
+                                               <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:3.0.3</extension>
+                                       </extensions>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>generate-sources-from-xsd</id>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>xsdtojava</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sourceRoot>${project.xsd.schemas.target.path}</sourceRoot>
+                                                       <xsdOptions>
+                                                               <xsdOption>
+                                                                       <extension>true</extension>
+                                                                       <xsd>${project.xsd.schemas.source.path}/parent.xsd</xsd>
+                                                                       <bindingFile>${project.bindings.path}/custombinding.xjb</bindingFile>
+                                                                       <packagename>${project.xsd.schemas.package.name}</packagename>
+                                                               </xsdOption>
+                                                       </xsdOptions>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>build-helper-maven-plugin</artifactId>
+                               <version>1.9.1</version>
+                               <executions>
+                                       <execution>
+                                               <id>add-source</id>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>add-source</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sources>
+                                                               <source>${project.xsd.schemas.target.path}</source>
+                                                       </sources>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
 </project>
index b8c95e6..d9fa313 100644 (file)
-<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>
-  <parent>
-    <artifactId>web-services-spring-cxf</artifactId>
-    <groupId>de.spring.webservices</groupId>
-    <version>1.0-SNAPSHOT</version>
-  </parent>
-  <artifactId>web-services-spring-cxf-server</artifactId>
-  <packaging>war</packaging>
-  <name>web-services-spring-cxf-server</name>
-  <url>http://gumartinm.name</url>
+<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>
+       <parent>
+               <artifactId>web-services-spring-cxf</artifactId>
+               <groupId>de.spring.webservices</groupId>
+               <version>1.0-SNAPSHOT</version>
+       </parent>
+       <artifactId>web-services-spring-cxf-server</artifactId>
+       <packaging>war</packaging>
+       <name>web-services-spring-cxf-server</name>
+       <url>http://gumartinm.name</url>
 
-  <properties>
-    <jetty.version>9.3.0.RC0</jetty.version>
-    <project.xsd.schemas.source.path>src/main/resources</project.xsd.schemas.source.path>
-    <project.xsd.schemas.target.path>${basedir}/target/generated-sources/src/main/java</project.xsd.schemas.target.path>
-    <project.xsd.schemas.package.name>de.spring.webservices.auto</project.xsd.schemas.package.name>
-    <project.bindings.path>src/main/build-resources/bindings</project.bindings.path>
-    <!-- Requires absolute path (because of that I am using ${basedir} -->
-    <project.catalogs.path>${basedir}/src/main/build-resources/catalogs</project.catalogs.path>
-  </properties>
+       <properties>
+               <jetty.version>9.3.0.RC0</jetty.version>
+               <project.xsd.schemas.source.path>src/main/resources</project.xsd.schemas.source.path>
+               <project.xsd.schemas.target.path>${basedir}/target/generated-sources/src/main/java</project.xsd.schemas.target.path>
+               <project.xsd.schemas.package.name>de.spring.webservices.auto</project.xsd.schemas.package.name>
+               <project.bindings.path>src/main/build-resources/bindings</project.bindings.path>
+               <!-- Requires absolute path (because of that I am using ${basedir} -->
+               <project.catalogs.path>${basedir}/src/main/build-resources/catalogs</project.catalogs.path>
+       </properties>
 
-  <dependencies>
-    <dependency>
-      <groupId>org.springframework.ws</groupId>
-      <artifactId>spring-ws-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.ws</groupId>
-      <artifactId>spring-xml</artifactId>
-    </dependency>
-    <dependency>
-        <groupId>org.jdom</groupId>
-        <artifactId>jdom</artifactId>
-    </dependency>
+       <dependencies>
+               <dependency>
+                       <groupId>org.springframework.ws</groupId>
+                       <artifactId>spring-ws-core</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.ws</groupId>
+                       <artifactId>spring-xml</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.jdom</groupId>
+                       <artifactId>jdom</artifactId>
+               </dependency>
 
 
-    <!-- Global types -->
-    <dependency>
-        <groupId>de.spring.webservices</groupId>
-        <artifactId>web-services-spring-cxf-globalxsds</artifactId>
-        <version>${project.version}</version>
-    </dependency>
+               <!-- Global types -->
+               <dependency>
+                       <groupId>de.spring.webservices</groupId>
+                       <artifactId>web-services-spring-cxf-globalxsds</artifactId>
+                       <version>${project.version}</version>
+               </dependency>
 
 
-    <!-- Required by spring-ws-core -->
-    <dependency>
-        <groupId>wsdl4j</groupId>
-        <artifactId>wsdl4j</artifactId>
-    </dependency>
+               <!-- Required by spring-ws-core -->
+               <dependency>
+                       <groupId>wsdl4j</groupId>
+                       <artifactId>wsdl4j</artifactId>
+               </dependency>
 
-    <!-- Required by jaxb2-basics as specified: 
-         http://confluence.highsource.org/display/J2B/Using+JAXB2+Basics+Plugins+with+CXF
-    -->
-    <dependency>
-      <groupId>org.jvnet.jaxb2_commons</groupId>
-      <artifactId>jaxb2-basics-runtime</artifactId>
-      <version>0.9.4</version>
-    </dependency>
+               <!-- Required by jaxb2-basics as specified: http://confluence.highsource.org/display/J2B/Using+JAXB2+Basics+Plugins+with+CXF -->
+               <dependency>
+                       <groupId>org.jvnet.jaxb2_commons</groupId>
+                       <artifactId>jaxb2-basics-runtime</artifactId>
+                       <version>0.9.4</version>
+               </dependency>
 
-    <!-- Unitary and integration tests -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework.ws</groupId>
-      <artifactId>spring-ws-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.mockito</groupId>
-      <artifactId>mockito-core</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
+               <!-- Unitary and integration tests -->
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework</groupId>
+                       <artifactId>spring-test</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.ws</groupId>
+                       <artifactId>spring-ws-test</artifactId>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-core</artifactId>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
 
-  <build>
-    <finalName>${project.artifactId}</finalName>
-    <resources>
-        <resource>
-            <directory>${basedir}/src/main/webapp</directory>
-            <excludes>
-                <exclude>**/*.*</exclude>
-            </excludes>
-        </resource>
-        <resource>
-            <directory>${basedir}/src/main/resources/</directory>
-            <includes>
-                <include>**/*.*</include>
-            </includes>
-        </resource>
-    </resources>
-    <plugins>
-        <!-- Generate code from xsd files:
-             We could use maven-jaxb2-plugin in order to generate Java classes from XSD files but
-             this plugin seems more useful so, I keep using it. Besides, it is based on Apache CXF which
-             as well, uses jaxb.
+       <build>
+               <finalName>${project.artifactId}</finalName>
+               <resources>
+                       <resource>
+                               <directory>${basedir}/src/main/webapp</directory>
+                               <excludes>
+                                       <exclude>**/*.*</exclude>
+                               </excludes>
+                       </resource>
+                       <resource>
+                               <directory>${basedir}/src/main/resources/</directory>
+                               <includes>
+                                       <include>**/*.*</include>
+                               </includes>
+                       </resource>
+               </resources>
+               <plugins>
+                       <!-- Generate code from xsd files: We could use maven-jaxb2-plugin in 
+                               order to generate Java classes from XSD files but this plugin seems more 
+                               useful so, I keep using it. Besides, it is based on Apache CXF which as well, 
+                               uses jaxb. See: http://cxf.apache.org/cxf-xjc-plugin.html -->
+                       <plugin>
+                               <groupId>org.apache.cxf</groupId>
+                               <artifactId>cxf-xjc-plugin</artifactId>
+                               <configuration>
+                                       <fork>true</fork>
+                                       <extensions>
+                                               <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:3.0.3</extension>
+                                       </extensions>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>generate-sources-from-xsd</id>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>xsdtojava</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sourceRoot>${project.xsd.schemas.target.path}</sourceRoot>
+                                                       <xsdOptions>
+                                                               <xsdOption>
+                                                                       <extension>true</extension>
+                                                                       <xsd>${project.xsd.schemas.source.path}/examples.xsd</xsd>
+                                                                       <bindingFile>${project.bindings.path}/custombinding.xjb</bindingFile>
+                                                                       <catalog>${project.catalogs.path}/catalog.cat</catalog>
+                                                                       <packagename>${project.xsd.schemas.package.name}</packagename>
+                                                                       <extensionArgs>
+                                                                               <extraarg>-Xinheritance</extraarg>
+                                                                               <extraarg>-Xannotate</extraarg>
+                                                                       </extensionArgs>
+                                                               </xsdOption>
+                                                       </xsdOptions>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                               <dependencies>
+                                       <!-- We make this plugin work with this jaxb2 version. This particular 
+                                               version let us generate inherited classes using the -Xinheritance argument. 
+                                               DO NOT FORGET: We can use <inheritance:implements> in xsd files or by means 
+                                               of custom bindings (see custombinding.xjb) This useful when you may not modify 
+                                               xsd files because they are generated by other person or machine. -->
+                                       <dependency>
+                                               <groupId>org.jvnet.jaxb2_commons</groupId>
+                                               <artifactId>jaxb2-basics</artifactId>
+                                               <version>0.9.4</version>
+                                       </dependency>
 
-             See: http://cxf.apache.org/cxf-xjc-plugin.html
-        -->
-        <plugin>
-            <groupId>org.apache.cxf</groupId>
-            <artifactId>cxf-xjc-plugin</artifactId>
-            <version>3.0.3</version>
-            <configuration>
-                <fork>true</fork>
-                <extensions>
-                    <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:3.0.3</extension>
-                </extensions>
-            </configuration>
-            <executions>
-                <execution>
-                    <id>generate-sources-from-xsd</id>
-                    <phase>generate-sources</phase>
-                    <goals>
-                        <goal>xsdtojava</goal>
-                    </goals>
-                    <configuration>
-                        <sourceRoot>${project.xsd.schemas.target.path}</sourceRoot>
-                        <xsdOptions>
-                            <xsdOption>
-                                <extension>true</extension>
-                                <xsd>${project.xsd.schemas.source.path}/examples.xsd</xsd>
-                                <bindingFile>${project.bindings.path}/custombinding.xjb</bindingFile>
-                                <catalog>${project.catalogs.path}/catalog.cat</catalog>
-                                <packagename>${project.xsd.schemas.package.name}</packagename>
-                                <extensionArgs>
-                                    <extraarg>-Xinheritance</extraarg>
-                                    <extraarg>-Xannotate</extraarg>
-                                 </extensionArgs>
-                            </xsdOption>
-                        </xsdOptions>
-                    </configuration>
-                </execution>
-            </executions>
-            <dependencies>
-                 <!-- We make this plugin work with this jaxb2 version.
-                      This particular version let us generate inherited classes using
-                      the -Xinheritance argument.
-     
-                      DO NOT FORGET: We can use <inheritance:implements> in xsd files or by means 
-                      of custom bindings (see custombinding.xjb) This useful when you may not modify
-                      xsd files because they are generated by other person or machine.
-                 -->
-                 <dependency>
-                     <groupId>org.jvnet.jaxb2_commons</groupId>
-                     <artifactId>jaxb2-basics</artifactId>
-                     <version>0.9.4</version>
-                 </dependency>
-
-                 <!-- We make this plugin work with this jaxb2 version.
-                      This particular version let us generate annotated classes using
-                      the -Xannotate argument.
-
-                      DO NOT FORGET: We can use <annox:annotate> in xsd files or by means 
-                      of custom bindings like I did with <inheritance:implements> (see custombinding.xjb)
-                      This useful when you may not modify xsd files because they are generated
-                      by other person or machine.
-                 -->
-                 <dependency>
-                     <groupId>org.jvnet.jaxb2_commons</groupId>
-                     <artifactId>jaxb2-basics-annotate</artifactId>
-                     <version>1.0.1</version>
-                 </dependency>
-             </dependencies>
-         </plugin>
-        <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>build-helper-maven-plugin</artifactId>
-                <version>1.9.1</version>
-                <executions>
-                    <execution>
-                        <id>add-source</id>
-                        <phase>generate-sources</phase>
-                        <goals>
-                            <goal>add-source</goal>
-                        </goals>
-                        <configuration>
-                            <sources>
-                                <source>${project.xsd.schemas.target.path}</source>
-                            </sources>
-                        </configuration>
-                    </execution>
-                </executions>
-          </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <version>2.6</version>
-        <configuration>
-            <webResources>
-                <resource>
-                    <filtering>true</filtering>
-                    <directory>src/main/webapp</directory>
-                    <includes>
-                        <include>WEB-INF/web.xml</include>
-                    </includes>
-                </resource>
-            </webResources>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.eclipse.jetty</groupId>
-        <artifactId>jetty-maven-plugin</artifactId>
-        <version>${jetty.version}</version>
-        <configuration>
-          <jettyXml>${basedir}/src/main/jetty/jetty-http.xml</jettyXml>
-        </configuration>
-      </plugin> 
-    </plugins>
-  </build>
+                                       <!-- We make this plugin work with this jaxb2 version. This particular 
+                                               version let us generate annotated classes using the -Xannotate argument. 
+                                               DO NOT FORGET: We can use <annox:annotate> in xsd files or by means of custom 
+                                               bindings like I did with <inheritance:implements> (see custombinding.xjb) 
+                                               This useful when you may not modify xsd files because they are generated 
+                                               by other person or machine. -->
+                                       <dependency>
+                                               <groupId>org.jvnet.jaxb2_commons</groupId>
+                                               <artifactId>jaxb2-basics-annotate</artifactId>
+                                               <version>1.0.1</version>
+                                       </dependency>
+                               </dependencies>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>build-helper-maven-plugin</artifactId>
+                               <version>1.9.1</version>
+                               <executions>
+                                       <execution>
+                                               <id>add-source</id>
+                                               <phase>generate-sources</phase>
+                                               <goals>
+                                                       <goal>add-source</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <sources>
+                                                               <source>${project.xsd.schemas.target.path}</source>
+                                                       </sources>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-war-plugin</artifactId>
+                               <version>2.6</version>
+                               <configuration>
+                                       <webResources>
+                                               <resource>
+                                                       <filtering>true</filtering>
+                                                       <directory>src/main/webapp</directory>
+                                                       <includes>
+                                                               <include>WEB-INF/web.xml</include>
+                                                       </includes>
+                                               </resource>
+                                       </webResources>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.eclipse.jetty</groupId>
+                               <artifactId>jetty-maven-plugin</artifactId>
+                               <version>${jetty.version}</version>
+                               <configuration>
+                                       <jettyXml>${basedir}/src/main/jetty/jetty-http.xml</jettyXml>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
 </project>
index 2769c08..a325a06 100644 (file)
-<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>
-  <groupId>de.spring.webservices</groupId>
-  <artifactId>web-services-spring-cxf</artifactId>
-  <packaging>pom</packaging>
-  <version>1.0-SNAPSHOT</version>
-  <name>web-services-spring-cxf</name>
-  <url>http://gumartinm.name</url>
-  <description>Web Services Spring Framework</description>
-  <organization>
-    <name>Gustavo Martin Morcuende</name>
-    <url>http://www.gumartinm.name</url>
-  </organization>
-  <scm>
-    <developerConnection>scm:git:http://git.gumartinm.name/SpringWebServicesForFun</developerConnection>
-    <url>http://git.gumartinm.name/SpringWebServicesForFun</url>
-  </scm>
+<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>
+       <groupId>de.spring.webservices</groupId>
+       <artifactId>web-services-spring-cxf</artifactId>
+       <packaging>pom</packaging>
+       <version>1.0-SNAPSHOT</version>
+       <name>web-services-spring-cxf</name>
+       <url>http://gumartinm.name</url>
+       <description>Web Services Spring Framework</description>
+       <organization>
+               <name>Gustavo Martin Morcuende</name>
+               <url>http://www.gumartinm.name</url>
+       </organization>
+       <scm>
+               <developerConnection>scm:git:http://git.gumartinm.name/SpringWebServicesForFun</developerConnection>
+               <url>http://git.gumartinm.name/SpringWebServicesForFun</url>
+       </scm>
 
-  <properties>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-    <!-- Be aware: spring-ws latest version does not follow spring-context latest version -->
-    <spring.version>4.0.9.RELEASE</spring.version>
-    <spring.ws.version>2.2.1.RELEASE</spring.ws.version>
-  </properties>
+       <properties>
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+               <!-- Be aware: spring-ws latest version does not follow spring-context 
+                       latest version -->
+               <spring.version>4.0.9.RELEASE</spring.version>
+               <spring.ws.version>2.2.1.RELEASE</spring.ws.version>
+       </properties>
 
-  <profiles>
-    <profile>
-        <id>release</id>
-        <properties>
-            <environment.profile>release</environment.profile>
-        </properties>
-        <activation>
-            <activeByDefault>true</activeByDefault>
-        </activation>
-    </profile>
-  </profiles>
+       <profiles>
+               <profile>
+                       <id>release</id>
+                       <properties>
+                               <environment.profile>release</environment.profile>
+                       </properties>
+                       <activation>
+                               <activeByDefault>true</activeByDefault>
+                       </activation>
+               </profile>
+       </profiles>
 
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-slf4j-impl</artifactId>
-      <version>2.3</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core</artifactId>
-      <version>2.3</version>
-    </dependency>
-    <dependency>
-      <groupId>cglib</groupId>
-      <artifactId>cglib</artifactId>
-      <version>2.2.2</version>
-    </dependency>
-  </dependencies>
-  <dependencyManagement>
-    <dependencies>
-      <dependency>
-        <groupId>org.springframework.ws</groupId>
-        <artifactId>spring-ws-core</artifactId>
-        <version>${spring.ws.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.springframework.ws</groupId>
-        <artifactId>spring-xml</artifactId>
-        <version>${spring.ws.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.jdom</groupId>
-        <artifactId>jdom</artifactId>
-        <version>2.0.2</version>
-      </dependency>
+       <dependencies>
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-slf4j-impl</artifactId>
+                       <version>2.3</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-core</artifactId>
+                       <version>2.3</version>
+               </dependency>
+               <dependency>
+                       <groupId>cglib</groupId>
+                       <artifactId>cglib</artifactId>
+                       <version>2.2.2</version>
+               </dependency>
+       </dependencies>
+       <dependencyManagement>
+               <dependencies>
+                       <dependency>
+                               <groupId>org.springframework.ws</groupId>
+                               <artifactId>spring-ws-core</artifactId>
+                               <version>${spring.ws.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.springframework.ws</groupId>
+                               <artifactId>spring-xml</artifactId>
+                               <version>${spring.ws.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.jdom</groupId>
+                               <artifactId>jdom</artifactId>
+                               <version>2.0.2</version>
+                       </dependency>
 
-      <!-- Required by spring-ws-core -->
-      <dependency>
-        <groupId>wsdl4j</groupId>
-        <artifactId>wsdl4j</artifactId>
-        <version>1.6.3</version>
-      </dependency>
+                       <!-- Required by spring-ws-core -->
+                       <dependency>
+                               <groupId>wsdl4j</groupId>
+                               <artifactId>wsdl4j</artifactId>
+                               <version>1.6.3</version>
+                       </dependency>
 
-      <!-- Unitary and integration tests --> 
-      <dependency>
-        <groupId>junit</groupId>
-        <artifactId>junit</artifactId>
-        <version>4.12</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>org.springframework</groupId>
-        <artifactId>spring-test</artifactId>
-        <version>${spring.version}</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>org.springframework.ws</groupId>
-        <artifactId>spring-ws-test</artifactId>
-        <version>${spring.ws.version}</version>
-        <scope>test</scope>
-      </dependency>
-      <dependency>
-        <groupId>org.mockito</groupId>
-        <artifactId>mockito-core</artifactId>
-        <version>2.0.11-beta</version>
-        <scope>test</scope>
-      </dependency>
-   </dependencies>
-  </dependencyManagement>
-  <build>
-
-    <pluginManagement>
-       <plugins>
-         <plugin>
-           <groupId>org.apache.maven.plugins</groupId>
-           <artifactId>maven-surefire-plugin</artifactId>
-           <version>2.18.1</version>
-         </plugin>
-         <plugin>
-           <groupId>org.apache.maven.plugins</groupId>
-           <artifactId>maven-failsafe-plugin</artifactId>
-           <version>2.18.1</version>
-         </plugin>
-       </plugins>
-    </pluginManagement>
-
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.3</version>
-        <configuration>
-            <source>1.8</source>
-            <target>1.8</target>
-            <encoding>${project.build.sourceEncoding}</encoding>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-resources-plugin</artifactId>
-        <version>2.7</version>
-        <configuration>
-          <encoding>${project.build.sourceEncoding}</encoding>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>2.4</version>
-        <configuration>
-          <archive>
-            <manifestEntries>
-              <Specification-Title>${project.description}</Specification-Title>
-              <Specification-Version>${project.version}</Specification-Version>
-              <Specification-Vendor>${project.organization.name}</Specification-Vendor>
-              <Implementation-Title>${project.description}</Implementation-Title>
-              <Implementation-Version>${project.version}</Implementation-Version>
-              <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
-            </manifestEntries>
-          </archive>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <exclude>**/*IntegrationTest.java</exclude>
-          </excludes>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-failsafe-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>integration-test</goal>
-              <goal>verify</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <includes>
-            <include>**/*IntegrationTest.java</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
+                       <!-- Unitary and integration tests -->
+                       <dependency>
+                               <groupId>junit</groupId>
+                               <artifactId>junit</artifactId>
+                               <version>4.12</version>
+                               <scope>test</scope>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.springframework</groupId>
+                               <artifactId>spring-test</artifactId>
+                               <version>${spring.version}</version>
+                               <scope>test</scope>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.springframework.ws</groupId>
+                               <artifactId>spring-ws-test</artifactId>
+                               <version>${spring.ws.version}</version>
+                               <scope>test</scope>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.mockito</groupId>
+                               <artifactId>mockito-core</artifactId>
+                               <version>2.0.11-beta</version>
+                               <scope>test</scope>
+                       </dependency>
+               </dependencies>
+       </dependencyManagement>
+       <build>
+               <pluginManagement>
+                       <plugins>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-surefire-plugin</artifactId>
+                                       <version>2.18.1</version>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-failsafe-plugin</artifactId>
+                                       <version>2.18.1</version>
+                               </plugin>
+                       </plugins>
+               </pluginManagement>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-compiler-plugin</artifactId>
+                               <version>3.3</version>
+                               <configuration>
+                                       <source>1.8</source>
+                                       <target>1.8</target>
+                                       <encoding>${project.build.sourceEncoding}</encoding>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-resources-plugin</artifactId>
+                               <version>2.7</version>
+                               <configuration>
+                                       <encoding>${project.build.sourceEncoding}</encoding>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-jar-plugin</artifactId>
+                               <version>2.4</version>
+                               <configuration>
+                                       <archive>
+                                               <manifestEntries>
+                                                       <Specification-Title>${project.description}</Specification-Title>
+                                                       <Specification-Version>${project.version}</Specification-Version>
+                                                       <Specification-Vendor>${project.organization.name}</Specification-Vendor>
+                                                       <Implementation-Title>${project.description}</Implementation-Title>
+                                                       <Implementation-Version>${project.version}</Implementation-Version>
+                                                       <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
+                                               </manifestEntries>
+                                       </archive>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <configuration>
+                                       <excludes>
+                                               <exclude>**/*IntegrationTest.java</exclude>
+                                       </excludes>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-failsafe-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>integration-test</goal>
+                                                       <goal>verify</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                               <configuration>
+                                       <includes>
+                                               <include>**/*IntegrationTest.java</include>
+                                       </includes>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
 </project>