<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">
    <!--
     Copyright (C) 2006 Joe Walnes.
     Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 XStream committers.
     All rights reserved.
     
     The software in this package is published under the terms of the BSD
     style license a copy of which has been included with this distribution in
     the LICENSE.txt file.
     
     Created on 29. July 2006 by Mauro Talevi
     -->
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.thoughtworks.xstream</groupId>
    <artifactId>xstream-parent</artifactId>
    <version>1.4.15</version>
  </parent>
  <artifactId>xstream</artifactId>
  <packaging>jar</packaging>
  <name>XStream Core</name>

  <dependencies>
    <dependency>
      <groupId>dom4j</groupId>
      <artifactId>dom4j</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>org.jdom</groupId>
      <artifactId>jdom</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.jdom</groupId>
      <artifactId>jdom2</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>stax</groupId>
      <artifactId>stax</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>org.codehaus.woodstox</groupId>
      <artifactId>wstx-asl</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>stax</groupId>
      <artifactId>stax-api</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>xom</groupId>
      <artifactId>xom</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>xmlpull</groupId>
      <artifactId>xmlpull</artifactId>
    </dependency>

    <dependency>
      <groupId>net.sf.kxml</groupId>
      <artifactId>kxml2-min</artifactId>
      <optional>true</optional>
    </dependency>

<!-- Registers itself as Service like Xpp3
    <dependency>
      <groupId>net.sf.kxml</groupId>
      <artifactId>kxml2</artifactId>
      <optional>true</optional>
    </dependency>
-->

    <dependency>
      <groupId>xpp3</groupId>
      <artifactId>xpp3_min</artifactId>
    </dependency>

    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib-nodep</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>org.codehaus.jettison</groupId>
      <artifactId>jettison</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>javax.activation</groupId>
      <artifactId>activation</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <scope>provided</scope><!-- only required for compilation with Java 11 or higher, but only used by Java 7 or below -->
    </dependency>

    <!-- test-scoped -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>

    <dependency>
      <groupId>jmock</groupId>
      <artifactId>jmock</artifactId>
    </dependency>

    <dependency>
      <groupId>org.json</groupId>
      <artifactId>json</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.megginson.sax</groupId>
      <artifactId>xml-writer</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.sun.xml.ws</groupId>
      <artifactId>jaxws-rt</artifactId>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>javax.xml.ws</groupId>
          <artifactId>jaxws-api</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.sun.istack</groupId>
          <artifactId>istack-commons-runtime</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.sun.xml.bind</groupId>
          <artifactId>jaxb-impl</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.sun.xml.messaging.saaj</groupId>
          <artifactId>saaj-impl</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.sun.xml.stream.buffer</groupId>
          <artifactId>streambuffer</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.sun.xml.ws</groupId>
          <artifactId>policy</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.sun.org.apache.xml.internal</groupId>
          <artifactId>resolver</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.glassfish.gmbal</groupId>
          <artifactId>gmbal-api-only</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.jvnet</groupId>
          <artifactId>mimepull</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.jvnet.staxex</groupId>
          <artifactId>stax-ex</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>complete-test-classpath</id>
            <phase>process-test-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <outputDirectory>target/lib</outputDirectory>
              <artifactItems>
                <artifactItem>
                  <groupId>proxytoys</groupId>
                  <artifactId>proxytoys</artifactId>
                  <version>0.2.1</version>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
          <execution>
            <id>collect-dependencies</id>
            <phase>package</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <outputDirectory>target/dependencies</outputDirectory>
              <includeScope>runtime</includeScope>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>
            </goals>
            <configuration>
              <includes>
                <include>**/AbstractAcceptanceTest.*</include>
                <include>META-INF/LICENSE</include>
              </includes>
              <archive combine.children="append">
                <manifestEntries>
                  <Specification-Title>${project.name} Test</Specification-Title>
                  <Implementation-Title>${project.name} Test</Implementation-Title>
                  <Bundle-License>BSD-3-Clause</Bundle-License>
                </manifestEntries>
              </archive>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>jdk11-ge</id>
      <activation>
        <jdk>[11,)</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <dependencies>
              <dependency>
                <groupId>javax.xml.bind</groupId>
                <artifactId>jaxb-api</artifactId>
                <version>${version.javax.xml.bind.api}</version>
              </dependency>
            </dependencies>
          </plugin>
        </plugins>
      </build>
      <properties>
        <surefire.argline>--illegal-access=${surefire.illegal.access}</surefire.argline>
      </properties>
    </profile>
    <profile>
      <id>jdk9-ge-jdk10</id>
      <activation>
        <jdk>[9,11)</jdk>
      </activation>
      <properties>
        <surefire.argline>--add-modules java.activation,java.xml.bind --illegal-access=${surefire.illegal.access}</surefire.argline>
      </properties>
    </profile>
    <profile>
      <id>jdk18-ge</id>
      <activation>
        <jdk>[1.8,)</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
              <compilerArgs>
                <arg>-XDignore.symbol.file</arg>
              </compilerArgs>
              <excludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/time/**</exclude>
                <exclude>**/ISO8601JavaTimeConverter.java</exclude>
                <exclude>**/annotations/*</exclude>
                <exclude>**/AnnotationMapper*</exclude>
                <exclude>**/enums/*</exclude>
                <exclude>**/EnumMapper*</exclude>
                <exclude>**/*15.java</exclude>
                <exclude>**/PathConverter.java</exclude>
                <exclude>**/Base64*Codec.java</exclude>
                <exclude>**/Types.java</exclude>
                <exclude>**/JDom2*.java</exclude>
              </excludes>
              <testExcludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/*18TypesTest.java</exclude>
                <exclude>**/*17TypesTest.java</exclude>
                <exclude>**/*15TypesTest.java</exclude>
                <exclude>**/FieldDictionaryTest.java</exclude>
                <exclude>**/annotations/*</exclude>
                <exclude>**/enums/*</exclude>
              </testExcludes>
            </configuration>
            <executions>
              <execution>
                <id>compile-jdk15</id>
                <configuration>
                  <source>${version.java.5}</source>
                  <target>${version.java.5}</target>
                  <excludes combine.self="override">
                    <exclude>**/Lambda**</exclude>
                    <exclude>**/time/**</exclude>
                    <exclude>**/ISO8601JavaTimeConverter.java</exclude>
                  </excludes>
                  <testExcludes combine.self="override">
                    <exclude>**/Lambda**</exclude>
                    <exclude>**/*18TypesTest.java</exclude>
                  </testExcludes>
                </configuration>
                <goals>
                  <goal>compile</goal>
                  <goal>testCompile</goal>
                </goals>
              </execution>
               <execution>
                <id>compile-jdk18</id>
                <configuration>
                  <source>1.8</source>
                  <target>1.8</target>
                  <excludes combine.self="override" />
                  <testExcludes combine.self="override" />
                </configuration>
                <goals>
                  <goal>compile</goal>
                  <goal>testCompile</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>jdk18</id>
      <activation>
        <jdk>1.8</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <source>1.8</source>
              <excludePackageNames>com.thoughtworks.xstream.core.util</excludePackageNames>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>${version.plugin.maven.javadoc}</version>
            <configuration>
              <excludePackageNames>com.thoughtworks.xstream.core.util</excludePackageNames>
              <additionalparam>${javadoc.xdoclint}</additionalparam>
              <detectJavaApiLink>false</detectJavaApiLink>
              <source>1.8</source>
              <links>
                <link>${javadoc.link.javase}</link>
              </links>
            </configuration>
          </plugin>
        </plugins>
      </reporting>
    </profile>
    <profile>
      <id>jdk17</id>
      <activation>
        <jdk>1.7</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
              <compilerArgs>
                <arg>-XDignore.symbol.file</arg>
              </compilerArgs>
              <excludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/time/**</exclude>
                <exclude>**/ISO8601JavaTimeConverter.java</exclude>
                <exclude>**/Base64JavaUtilCodec.java</exclude>
              </excludes>
              <testExcludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/Base64JavaUtilCodecTest.java</exclude>
                <exclude>**/*18TypesTest.java</exclude>
              </testExcludes>
            </configuration>
          </plugin>
          <plugin><!-- required for Maven Central -->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <source>1.7</source>
              <excludePackageNames>com.thoughtworks.xstream.core.util</excludePackageNames>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>jdk16</id>
      <activation>
        <jdk>1.6</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
              <compilerArgs>
                <arg>-XDignore.symbol.file</arg>
              </compilerArgs>
              <excludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/extended/PathConverter*</exclude>
                <exclude>**/time/**</exclude>
                <exclude>**/ISO8601JavaTimeConverter.java</exclude>
                <exclude>**/Base64JavaUtilCodec.java</exclude>
              </excludes>
              <testExcludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/extended/*17Test*</exclude>
                <exclude>**/Base64JavaUtilCodecTest.java</exclude>
                <exclude>**/acceptance/Extended17TypesTest*</exclude>
                <exclude>**/acceptance/*18TypesTest.java</exclude>
              </testExcludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>jdk15</id>
      <activation>
        <jdk>1.5</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
              <compilerArgs>
                <arg>-XDignore.symbol.file</arg>
              </compilerArgs>
              <excludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/extended/PathConverter*</exclude>
                <exclude>**/time/**</exclude>
                <exclude>**/ISO8601JavaTimeConverter.java</exclude>
                <exclude>**/Base64JavaUtilCodec.java</exclude>
                <exclude>**/Base64JAXBCodec.java</exclude>
              </excludes>
              <testExcludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/extended/*17Test*</exclude>
                <exclude>**/Base64JavaUtilCodecTest.java</exclude>
                <exclude>**/Base64JAXBCodecTest.java</exclude>
                <exclude>**/acceptance/Extended17TypesTest*</exclude>
                <exclude>**/acceptance/*18TypesTest.java</exclude>
              </testExcludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>jdk16-ge</id>
      <activation>
        <jdk>[1.6,)</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <executions>
              <execution>
                <id>default-jar</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <archive combine.children="append">
                    <manifestFile>${project.build.directory}/OSGi/MANIFEST.MF</manifestFile>
                  </archive>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
          </plugin>
          <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <configuration>
              <instructions combine.children="append">
                <Export-Package>!com.thoughtworks.xstream.core.util,com.thoughtworks.xstream.*;-noimport:=true</Export-Package>
              </instructions>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>jdk14</id>
      <activation>
        <jdk>1.4</jdk>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
              <excludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/annotations/*</exclude>
                <exclude>**/AnnotationMapper*</exclude>
                <exclude>**/EnumMapper*</exclude>
                <exclude>**/enums/*</exclude>
                <exclude>**/time/**</exclude>
                <exclude>**/ISO8601JavaTimeConverter.java</exclude>
                <exclude>**/Base64JavaUtilCodec.java</exclude>
                <exclude>**/Base64JAXBCodec.java</exclude>
                <exclude>**/basic/StringBuilder*</exclude>
                <exclude>**/basic/UUID*</exclude>
                <exclude>**/core/util/Types*</exclude>
                <exclude>**/reflection/*15*</exclude>
                <exclude>**/extended/*15*</exclude>
                <exclude>**/extended/PathConverter*</exclude>
                <exclude>**/io/xml/JDom2*</exclude>
              </excludes>
              <testExcludes>
                <exclude>**/Lambda**</exclude>
                <exclude>**/annotations/*</exclude>
                <exclude>**/enums/*</exclude>
                <exclude>**/extended/*17Test*</exclude>
                <exclude>**/reflection/SunLimitedUnsafeReflectionProviderTest*</exclude>
                <exclude>**/reflection/PureJavaReflectionProvider15Test*</exclude>
                <exclude>**/Base64JavaUtilCodecTest.java</exclude>
                <exclude>**/Base64JAXBCodecTest.java</exclude>
                <exclude>**/io/xml/JDom2*Test*</exclude>
                <exclude>**/acceptance/Basic15TypesTest*</exclude>
                <exclude>**/acceptance/Concurrent15TypesTest*</exclude>
                <exclude>**/acceptance/Extended17TypesTest*</exclude>
                <exclude>**/acceptance/*18TypesTest.java</exclude>
              </testExcludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <dependencies>
        <dependency>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </dependency>
        <dependency>
          <groupId>xerces</groupId>
          <artifactId>xercesImpl</artifactId>
        </dependency>
      </dependencies>
      <properties>
        <version.org.codehaus.jettison>1.0.1</version.org.codehaus.jettison>
      </properties>
    </profile>
  </profiles>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>${version.plugin.maven.surefire}</version>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${version.plugin.jacoco}</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>report</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

  <properties>
    <bundle.export.package>!com.thoughtworks.xstream.core.util,com.thoughtworks.xstream.*;-noimport:=true</bundle.export.package>
    <bundle.import.package>
        org.xmlpull.mxp1;resolution:=optional,
        org.xmlpull.v1;resolution:=optional,
        com.ibm.*;resolution:=optional,
        com.sun.*;resolution:=optional,
        javax.*;resolution:=optional,
        org.xml.*;resolution:=optional,
        sun.*;resolution:=optional,
        *
    </bundle.import.package>
  </properties>

</project>
