<?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>maven-cli-plugin-parent</artifactId>
    <groupId>org.twdata.maven</groupId>
    <version>0.6.4</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>maven-cli-plugin</artifactId>
  <packaging>maven-plugin</packaging>
  <name>Maven CLI Plugin</name>
  <version>0.6.4</version>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <artifactSet>
                <includes>
                  <include>org.twdata.maven:mojo-executor</include>
                  <include>jline:jline</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>org.twdata.maven.mojoexecutor</pattern>
                  <shadedPattern>org.shaded.mojoexecutor</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer />
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-dependencies</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <excludeTransitive>true</excludeTransitive>
              <includeArtifactIds>maven-cli-idea-plugin</includeArtifactIds>
              <stripVersion>true</stripVersion>
              <outputDirectory>${project.build.outputDirectory}</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>buildidea</id>
      <dependencies>
        <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>maven-cli-idea-plugin</artifactId>
          <version>0.6.4</version>
          <exclusions>
            <exclusion>
              <artifactId>openapi</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
            <exclusion>
              <artifactId>annotations</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
            <exclusion>
              <artifactId>forms_rt</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
            <exclusion>
              <artifactId>jgoodies-forms</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
            <exclusion>
              <artifactId>javac2</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
            <exclusion>
              <artifactId>extensions</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
            <exclusion>
              <artifactId>bootstrap</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
            <exclusion>
              <artifactId>idea</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
            <exclusion>
              <artifactId>idea-junit</artifactId>
              <groupId>com.intellij.idea</groupId>
            </exclusion>
          </exclusions>
        </dependency>
      </dependencies>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>1.4</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

