<?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.1.14.Final-redhat-00003</version>
  </parent>

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

  <name>Prospero Docs</name>

  <properties>
    <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.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <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>
              <imagesDir>images</imagesDir>
              <backend>html</backend>
              <doctype>book</doctype>
              <attributes>
                <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>
