<?xml version="1.0" encoding="UTF-8"?>
<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">
   <parent>
      <artifactId>spring-ws-samples</artifactId>
      <groupId>org.springframework.ws</groupId>
      <version>1.5.4-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>mtom</artifactId>
   <packaging>war</packaging>
   <name>Spring WS MTOM Example</name>
   <description>This sample shows how to use MTOM and JAXB2.</description>
   <pluginRepositories>
       <pluginRepository>
           <id>java.net</id>
           <name>Java.net Repository for Maven2</name>
           <url>http://download.java.net/maven/1/</url>
           <layout>legacy</layout>
       </pluginRepository>
   </pluginRepositories>   
    <reporting>
        <plugins>
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <stylesheetfile>${basedir}/../../src/main/javadoc/javadoc.css</stylesheetfile>
                </configuration>
            </plugin>
        </plugins>
    </reporting>
    <profiles>
        <profile>
            <id>jdk14-jdk15</id>
            <activation>
                <jdk>!1.6</jdk>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>javax.xml.bind</groupId>
                    <artifactId>jaxb-api</artifactId>
                    <scope>provided</scope>
                    <optional>true</optional>
                    <version>2.1</version>
                    <exclusions>
                        <exclusion>
                            <groupId>javax.xml.stream</groupId>
                            <artifactId>stax-api</artifactId>
                        </exclusion>
                        <exclusion>
                            <groupId>javax.activation</groupId>
                            <artifactId>activation</artifactId>
                        </exclusion>
                    </exclusions>
                </dependency>
                <dependency>
                    <groupId>com.sun.xml.bind</groupId>
                    <artifactId>jaxb-impl</artifactId>
                    <version>2.1.5</version>
                    <scope>provided</scope>
                </dependency>
                <dependency>
                    <groupId>javax.activation</groupId>
                    <artifactId>activation</artifactId>
                </dependency>
            </dependencies>
        </profile>
    </profiles>
   <build>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
               <source>1.5</source>
               <target>1.5</target>
            </configuration>
         </plugin>
          <plugin>
              <groupId>com.sun.tools.xjc.maven2</groupId>
              <artifactId>maven-jaxb-plugin</artifactId>
              <executions>
                  <execution>
                      <phase>generate-sources</phase>
                      <goals>
                          <goal>generate</goal>
                      </goals>
                  </execution>
              </executions>
              <configuration>
                  <generatePackage>org.springframework.ws.samples.mtom.schema</generatePackage>
                  <schemaDirectory>src/main/webapp/WEB-INF</schemaDirectory>
              </configuration>
          </plugin>
      </plugins>
   </build>
   <dependencies>
      <!-- Spring-WS dependencies -->
      <dependency>
         <groupId>org.springframework.ws</groupId>
         <artifactId>spring-ws-core-tiger</artifactId>
      </dependency>
      <dependency>
         <groupId>org.springframework.ws</groupId>
         <artifactId>spring-oxm-tiger</artifactId>
         <scope>runtime</scope>
      </dependency>
   </dependencies>
</project>
