<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2010, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  -->
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.jboss.eap</groupId>
    <artifactId>jboss-eap-parent</artifactId>
    <relativePath>../pom.xml</relativePath>
    <!--
    Maintain separation between the artifact id and the version to help prevent
    merge conflicts between commits changing the GA and those changing the V.
    -->
    <version>7.3.3.GA-redhat-00004</version>
  </parent>

  <artifactId>javadocs-parent</artifactId>

  <name>JBoss EAP aggregate javadocs parent</name>
  <packaging>pom</packaging>

  <properties>
    <version.org.apache.maven.maven-core>3.3.9</version.org.apache.maven.maven-core>
    <version.org.apache.maven.plugins.maven-eclipse-plugin>2.10</version.org.apache.maven.plugins.maven-eclipse-plugin>
    <version.org.apache.maven.plugins.maven-javadoc-plugin>3.1.1</version.org.apache.maven.plugins.maven-javadoc-plugin>
    <version.org.apache.maven.plugin-testing.maven-plugin-testing-harness>3.3.0</version.org.apache.maven.plugin-testing.maven-plugin-testing-harness>
    <version.org.apache.maven.plugin-tools>3.5</version.org.apache.maven.plugin-tools>
    <version.org.jacoco.jacoco-maven-plugin>0.7.9</version.org.jacoco.jacoco-maven-plugin>
    <version.org.wildfly.javadocs-pom-generator-plugin>1.1.8.Final</version.org.wildfly.javadocs-pom-generator-plugin>
    <enforcer.skip>true</enforcer.skip>

    <javadocs.dist.artifactId>wildfly-aggregate-javadocs</javadocs.dist.artifactId><!-- must match to artifactId in template-pom.xml and to artifactId of pom file in module wildfly-aggregate-javadocs -->
    <javadocs.ee-dist.artifactId>wildfly-ee-aggregate-javadocs</javadocs.ee-dist.artifactId><!-- must match to artifactId in template-ee-pom.xml and to artifactId of pom file in module wildfly-ee-aggregate-javadocs -->
    <javadocs.target.release.version>${full.dist.product.release.version}</javadocs.target.release.version>
    <javadocs.xp.target.release.version>${expansion.pack.release.version}</javadocs.xp.target.release.version>
  </properties>

  <modules>
    <module>javadocs-builder</module>
  </modules>

  <dependencies>
    <dependency>
      <groupId>org.wildfly.core</groupId>
      <artifactId>wildfly-core-parent</artifactId>
      <version>${version.org.wildfly.core}</version>
      <classifier>project-sources</classifier>
      <type>zip</type>
    </dependency>
  </dependencies>

  <profiles>

    <!-- Javadocs for ee-dist -->
    <profile>
      <id>ee-dist-javadocs</id>
      <activation>
        <property>
          <name>!javadocs.ee-dist.skip</name>
        </property>
      </activation>
      <modules>
        <module>wildfly-ee-aggregate-javadocs</module>
      </modules>
      <dependencies>
        <dependency>
          <groupId>org.jboss.eap</groupId>
          <artifactId>wildfly-ee-dist</artifactId>
          <version>7.3.3.GA-redhat-00004</version>
          <type>zip</type>
        </dependency>
        <dependency>
          <groupId>org.jboss.eap</groupId>
          <artifactId>wildfly-ee-dist</artifactId>
          <version>7.3.3.GA-redhat-00004</version>
          <classifier>src</classifier>
          <type>zip</type>
        </dependency>
      </dependencies>
    </profile>

    <!-- Javadocs for dist -->
    <profile>
      <id>dist-javadocs</id>
      <activation>
        <property>
          <name>!javadocs.dist.skip</name>
        </property>
      </activation>
      <modules>
        <module>wildfly-aggregate-javadocs</module>
      </modules>
      <dependencies>
        <dependency>
          <groupId>org.jboss.eap</groupId>
          <artifactId>wildfly-dist</artifactId>
          <version>7.3.3.GA-redhat-00004</version>
          <type>zip</type>
        </dependency>
        <dependency>
          <groupId>org.jboss.eap</groupId>
          <artifactId>wildfly-dist</artifactId>
          <version>7.3.3.GA-redhat-00004</version>
          <classifier>src</classifier>
          <type>zip</type>
        </dependency>
      </dependencies>
    </profile>

  </profiles>
</project>
