<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>2.0.0</version>
  </parent>

  <groupId>com.helger.maven</groupId>
  <artifactId>jaxb-maven-plugin-project</artifactId>
  <version>0.16.0</version>
  <packaging>pom</packaging>

  <name>Maven JAXB Plugin Project</name>
  <description>Maven plugin for JAXB 2.x and 3.x XJC compiler to generate Java sources from XML Schemas.</description>
  <url>https://github.com/phax/maven-jaxb2-plugin</url>

  <licenses>
    <license>
      <name>BSD-Style License</name>
      <url>https://github.com/phax/maven-jaxb2-plugin/blob/main/LICENSE</url>
      <distribution>repo</distribution>
      <comments>Maven JAXB Plugin license is the 3-clause BSD license which is compatible with GPL. Maven JAXB2 Plugin license does not require you to include any acknowledgments for Maven JAXB2 Plugin in advertising materials for your software.</comments>
    </license>
  </licenses>

  <inceptionYear>2006</inceptionYear>
  <scm>
    <connection>scm:git:git@github.com:phax/maven-jaxb2-plugin.git</connection>
    <developerConnection>scm:git:git@github.com:phax/maven-jaxb2-plugin.git</developerConnection>
    <url>http://github.com/phax/maven-jaxb2-plugin</url>
    <tag>jaxb-maven-plugin-project-0.16.0</tag>
  </scm>
  <developers>
    <developer>
      <id>lexi</id>
      <name>Aleksei Valikov</name>
      <email>valikov@gmx.net</email>
      <roles>
        <role>project owner</role>
      </roles>
    </developer>
    <developer>
      <id>philip</id>
      <name>Philip Helger</name>
      <email>philip(at)helger.com</email>
      <timezone>CET</timezone>
    </developer>
    <developer>
      <id>adamretter</id>
      <name>Adam Retter</name>
      <email>adam@evolvedbinary.com</email>
      <organization>Evolved Binary</organization>
      <timezone>CET</timezone>
    </developer>
  </developers>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.version>2.2.1</maven.version>

    <!-- API versions -->
    <jaxb2-api.version>2.3.1</jaxb2-api.version>
    <jaxb3-api.version>3.0.1</jaxb3-api.version>
    <jaxb4-api.version>4.0.0</jaxb4-api.version>

    <!-- Implementation versions -->
    <jaxb21.version>2.1</jaxb21.version>

    <jaxb22.version>2.2.11</jaxb22.version>
    <jaxb22.xsom.version>20140925</jaxb22.xsom.version>

    <jaxb23.version>2.3.6</jaxb23.version>
    <jaxb23.core.version>2.3.0.1</jaxb23.core.version>

    <jaxb30.version>3.0.2</jaxb30.version>

    <jaxb40.version>4.0.1</jaxb40.version>

    <!-- Default version -->
    <jaxb.version>${jaxb23.version}</jaxb.version>

    <stax-ex.version>2.0.1</stax-ex.version>
    <fastinfoset.version>2.0.0</fastinfoset.version>
    <rngom.version>201605</rngom.version>

    <dtd-parser.version>1.4.5</dtd-parser.version>
    <istack.version>4.0.1</istack.version>
    <activation.version>1.2.0</activation.version>
    <jaxb2-basics.version>0.12.0</jaxb2-basics.version>
    <maven.plugin.testing.version>3.3.0</maven.plugin.testing.version>
    <maven.plugin.plugin.version>3.6.0</maven.plugin.plugin.version>
    <slf4j.version>2.0.6</slf4j.version>
  </properties>
  
  <profiles>
    <profile>
      <id>java8-10</id>
      <activation>
        <jdk>[1.8,10]</jdk>
      </activation>
      <modules>
        <module>plugin-core</module>
        <module>plugin-2.2</module>
        <module>plugin-2.3</module>
        <module>plugin-3.0</module>
        <!-- plugin-4.0 requires Java 11+ -->
        <module>plugin</module>
        <module>testing</module>
      </modules>
    </profile>
    <profile>
      <id>java11+</id>
      <activation>
        <jdk>[11,)</jdk>
      </activation>
      <modules>
        <module>plugin-core</module>
        <module>plugin-2.2</module>
        <module>plugin-2.3</module>
        <module>plugin-3.0</module>
        <module>plugin-4.0</module>
        <module>plugin</module>
        <module>testing</module>
      </modules>
    </profile>
    <profile>
      <id>samples</id>
      <activation>
        <property>
          <name>samples</name>
        </property>
      </activation>
      <modules>
        <module>samples</module>
        <module>dist</module>
      </modules>
    </profile>
    <profile>
      <id>tests</id>
      <activation>
        <property>
          <name>tests</name>
        </property>
      </activation>
      <modules>
        <module>tests</module>
      </modules>
    </profile>
    <profile>
      <id>all</id>
      <activation>
        <property>
          <name>all</name>
        </property>
      </activation>
      <modules>
        <module>dist</module>
        <module>samples</module>
        <module>tests</module>
      </modules>
    </profile>
  </profiles>
  
  <dependencyManagement>
    <dependencies>
      <!-- Start of jaxb-runtime dependencies -->
      <dependency>
        <groupId>org.glassfish.jaxb</groupId>
        <artifactId>txw2</artifactId>
        <version>${jaxb.version}</version>
      </dependency>
      <dependency>
        <groupId>com.sun.istack</groupId>
        <artifactId>istack-commons-runtime</artifactId>
        <version>${istack.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jvnet.staxex</groupId>
        <artifactId>stax-ex</artifactId>
        <version>${stax-ex.version}</version>
      </dependency>
      <dependency>
        <groupId>com.sun.xml.fastinfoset</groupId>
        <artifactId>FastInfoset</artifactId>
        <version>${fastinfoset.version}</version>
      </dependency>
      <!-- End of jaxb-runtime dependencies -->

      <dependency>
        <groupId>javax.annotation</groupId>
        <artifactId>javax.annotation-api</artifactId>
        <version>1.3.2</version>
      </dependency>
      <dependency>
        <groupId>com.sun.xml.dtd-parser</groupId>
        <artifactId>dtd-parser</artifactId>
        <version>${dtd-parser.version}</version>
      </dependency>
      <dependency>
        <groupId>com.sun.istack</groupId>
        <artifactId>istack-commons-tools</artifactId>
        <version>${istack.version}</version>
        <exclusions>
          <exclusion>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.sun</groupId>
            <artifactId>tools</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>com.sun.activation</groupId>
        <artifactId>javax.activation</artifactId>
        <version>${activation.version}</version>
      </dependency>
			<!-- End of jaxb-xjc dependencies -->
      <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-extra-osgi</artifactId>
        <version>${jaxb.version}</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>jaxb-maven-plugin-core</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>jaxb2-maven-plugin</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>jaxb22-maven-plugin</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>jaxb23-maven-plugin</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>jaxb-maven-plugin-testing</artifactId>
        <version>${project.version}</version>
      </dependency>
			<!-- Maven plugin and api classes -->
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-artifact</artifactId>
        <version>${maven.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-plugin-api</artifactId>
        <version>${maven.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-project</artifactId>
        <version>${maven.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-model</artifactId>
        <version>${maven.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-core</artifactId>
        <version>${maven.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-artifact-manager</artifactId>
        <version>${maven.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-repository-metadata</artifactId>
        <version>${maven.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-settings</artifactId>
        <version>${maven.version}</version>
      </dependency>

      <dependency>
        <groupId>org.apache.maven.plugin-tools</groupId>
        <artifactId>maven-plugin-annotations</artifactId>
        <version>${maven.plugin.plugin.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.code.findbugs</groupId>
        <artifactId>jsr305</artifactId>
        <version>3.0.2</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.13.2</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven.plugin-testing</groupId>
        <artifactId>maven-plugin-testing-tools</artifactId>
        <version>${maven.plugin.testing.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.maven.plugin-testing</groupId>
        <artifactId>maven-plugin-testing-harness</artifactId>
        <version>${maven.plugin.testing.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-interpolation</artifactId>
        <version>1.26</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.sonatype.plexus</groupId>
        <artifactId>plexus-build-api</artifactId>
        <version>0.0.7</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-utils</artifactId>
        <version>3.3.0</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.12.0</version>
      </dependency>
			<!-- SLF4J -->
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
			<!-- JAXB2 Basics -->
      <dependency>
        <groupId>org.jvnet.jaxb2_commons</groupId>
        <artifactId>jaxb2-basics-runtime</artifactId>
        <version>${jaxb2-basics.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <defaultGoal>install</defaultGoal>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-plugin-plugin</artifactId>
          <version>${maven.plugin.plugin.version}</version>
          <configuration>
            <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
          </configuration>
          <executions>
            <execution>
              <id>mojo-descriptor</id>
              <phase>process-classes</phase>
              <goals>
                <goal>descriptor</goal>
              </goals>
            </execution>
            <execution>
              <id>help-goal</id>
              <goals>
                <goal>helpmojo</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>3.2.0</version>
        </plugin>
      </plugins>
    </pluginManagement>
    
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <!-- Base modules default to Java 1.8 -->
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>analyze</id>
            <goals>
              <goal>analyze-only</goal>
            </goals>
            <configuration>
              <failOnWarning>true</failOnWarning>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
