<?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>
    <artifactId>hawkular-wildfly-agent-parent</artifactId>
    <groupId>org.hawkular.agent</groupId>
    <version>0.13.0.Final</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>hawkular-wildfly-agent-installer</artifactId>
  <name>Hawkular Agent: Wildfly Agent Installer</name>
  <description>Installs the Hawkular WildFly Agent into a WildFly Server</description>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <configuration>
          <mainClass>org.hawkular.wildfly.agent.installer.AgentInstaller</mainClass>
          <arguments>
            <argument>--wildfly-home=${org.hawkular.wildfly.home}</argument>
            <argument>--module-dist=${project.basedir}/../hawkular-wildfly-agent-wf-extension/target/hawkular-wildfly-agent-wf-extension-${project.version}.zip</argument>
            <argument>--hawkular-server-url=http://127.0.0.1:8080</argument>
          </arguments>
          <systemProperties>
            <systemProperty>
              <key>org.hawkular.wildfly.agent.installer.throw-exception-on-error</key>
              <value>true</value>
            </systemProperty>
          </systemProperties>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4.2</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <dependency-reduced-pom>false</dependency-reduced-pom>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>

