<?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>
    <groupId>org.wildfly.prospero</groupId>
    <artifactId>prospero-dist</artifactId>
    <version>1.3.10.Final-redhat-00002</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.wildfly.prospero</groupId>
  <artifactId>prospero-docs</artifactId>
  <packaging>jar</packaging>

  <name>Prospero Docs</name>

  <properties>
    <maven.deploy.skip>true</maven.deploy.skip>
    <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>

    <ec2-pub-ip-dash>1-2-3-4</ec2-pub-ip-dash>
    <ec2-pub-ip>1.2.3.4</ec2-pub-ip>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.asciidoctor</groupId>
        <artifactId>asciidoctor-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-resources</phase>
            <goals>
              <goal>process-asciidoc</goal>
            </goals>
            <configuration>
              <sourceDirectory>${basedir}/guide</sourceDirectory>
              <sourceDocumentName>index.adoc</sourceDocumentName>
              <backend>html</backend>
              <doctype>book</doctype>
              <attributes>
                <imagesDir>images</imagesDir>
                <version>${project.version}</version>
                <ec2-pub-ip-dash>${ec2-pub-ip-dash}</ec2-pub-ip-dash>
                <ec2-pub-ip>${ec2-pub-ip}</ec2-pub-ip>
              </attributes>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
            <configuration>
              <descriptors>
                <descriptor>scripts/assembly-docs.xml</descriptor>
              </descriptors>
              <tarLongFileMode>posix</tarLongFileMode>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
