<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (C) 2014-2019 Philip Helger (www.helger.com)
    philip[at]helger[dot]com

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<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>
    <groupId>com.helger</groupId>
    <artifactId>parent-pom</artifactId>
    <version>1.10.8</version>
  </parent>
  <artifactId>ph-jaxb22-plugin</artifactId>
  <version>2.3.2.2</version>
  <name>ph-jaxb22-plugin</name>
  <description>JAXB 2.2/2.3 plugin to improve created output</description>
  <url>https://github.com/phax/ph-jaxb22-plugin</url>
  <inceptionYear>2014</inceptionYear>
  
  <licenses>
    <license>
      <name>Apache 2</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <scm>
    <connection>scm:git:git@github.com:phax/ph-jaxb22-plugin.git</connection>
    <developerConnection>scm:git:git@github.com:phax/ph-jaxb22-plugin.git</developerConnection>
    <url>http://github.com/phax/ph-jaxb22-plugin</url>
    <tag>ph-jaxb22-plugin-2.3.2.2</tag>
  </scm>

  <organization>
    <name>Philip Helger</name>
    <url>http://www.helger.com</url>
  </organization>

  <developers>
    <developer>
      <id>philip</id>
      <name>Philip Helger</name>
      <email>ph(at)helger.com</email>
      <url>http://www.helger.com</url>
    </developer>
  </developers>
  
  <properties>
    <!-- com.sun.xml.bind was the old one-->
    <jaxb.package>org.glassfish.jaxb</jaxb.package>
  </properties>

  <profiles>
    <profile>
      <id>jdk8</id>
      <activation>
        <jdk>1.8</jdk>
      </activation>
      <properties>
        <jaxb.version>2.2.11</jaxb.version>
      </properties>
      <dependencies>
        <!-- Only present up to v2.3.0 -->
        <dependency>
          <groupId>${jaxb.package}</groupId>
          <artifactId>jaxb-core</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>com.sun.xsom</groupId>
          <artifactId>xsom</artifactId>
          <version>20140925</version>                                  
          <scope>provided</scope>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>jdk9up</id>
      <activation>
        <!-- version 9 onwards -->
        <jdk>[9,)</jdk>
      </activation>
      <properties>
        <jaxb.version>2.3.2</jaxb.version>
      </properties>
      <dependencies>
        <dependency>
          <groupId>javax.activation</groupId>
          <artifactId>activation</artifactId>
          <version>1.1.1</version>
          <scope>provided</scope>
        </dependency>
        <!-- For 2.3.0 change to org.glassfish.jaxb:xsom:2.3.0 -->
        <dependency>
          <groupId>${jaxb.package}</groupId>
          <artifactId>xsom</artifactId>
          <version>${jaxb.version}</version>                                  
          <scope>provided</scope>
        </dependency>
      </dependencies>
    </profile>
  </profiles>
  
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>${jaxb.package}</groupId>
        <artifactId>jaxb-bom</artifactId>
        <version>${jaxb.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>com.helger</groupId>
        <artifactId>ph-commons-parent-pom</artifactId>
        <version>9.3.3</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>com.helger</groupId>
      <artifactId>ph-commons</artifactId>
    </dependency>
    <dependency>
      <groupId>com.helger</groupId>
      <artifactId>ph-graph</artifactId>
    </dependency>
    <dependency>
      <groupId>com.helger</groupId>
      <artifactId>ph-jaxb</artifactId>
    </dependency>
    <dependency>
      <groupId>${jaxb.package}</groupId>
      <artifactId>jaxb-xjc</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>${jaxb.package}</groupId>
      <artifactId>jaxb-runtime</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>${jaxb.package}</groupId>
      <artifactId>codemodel</artifactId>
      <version>${jaxb.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>${jaxb.package}</groupId>
      <artifactId>txw2</artifactId>
      <version>${jaxb.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.sun.istack</groupId>
      <artifactId>istack-commons-runtime</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.sun.xml.bind.external</groupId>
      <artifactId>rngom</artifactId>
      <version>${jaxb.version}</version>
    </dependency>
    <dependency>
      <groupId>org.jvnet.staxex</groupId>
      <artifactId>stax-ex</artifactId>
      <scope>provided</scope>
    </dependency>
    
    <dependency>
      <groupId>javax.validation</groupId>
      <artifactId>validation-api</artifactId>
      <version>2.0.1.Final</version>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
