<?xml version="1.0" encoding="UTF-8"?>
<!--  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates.  ~  ~ Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0  -->
<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>
  <groupId>io.thorntail</groupId>
  <artifactId>thorntail-packaging-helper-project</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>war</packaging>

  <properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    PROPERTIES
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>BOM_GROUPID</groupId>
        <artifactId>BOM_ARTIFACT</artifactId>
        <version>SWARM_VERSION</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>BOM_GROUPID</groupId>
        <artifactId>bom-certified</artifactId>
        <version>SWARM_VERSION</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    FRACTIONS_FROM_BOM
  </dependencies>

  <build>
    <finalName>full-project-package</finalName>
    <plugins>
      <plugin>
        <groupId>io.thorntail</groupId>
        <artifactId>thorntail-maven-plugin</artifactId>
        <version>SWARM_VERSION</version>
        <executions>
          <execution>
            <goals>
              <goal>package</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <groupId>org.apache.maven.plugins</groupId>
        <version>2.10</version>
        <executions>
          <execution>
            <id>download-sources</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>sources</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <failOnMissingWebXml>false</failOnMissingWebXml>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
