<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>izpack</artifactId>
        <groupId>org.codehaus.izpack</groupId>
        <version>5.2.2</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>

    <artifactId>izpack-maven-plugin</artifactId>

    <packaging>maven-plugin</packaging>
    <name>IzPack Maven Plugin</name>

    <description>Maven plugin for IzPack</description>
    <inceptionYear>2008</inceptionYear>

    <prerequisites>
        <maven>2.0.6</maven>
    </prerequisites>

    <developers>
        <developer>
            <name>Anthonin Bonnefoy</name>
            <roles>
                <role>Developer</role>
            </roles>
        </developer>
        <developer>
            <name>Dan Tran</name>
            <email>Dan T. Tran@gmail.com</email>
            <roles>
                <role>Project Developer</role>
            </roles>
        </developer>
        <developer>
            <name>René Krell</name>
            <roles>
                <role>Project Developer</role>
            </roles>
        </developer>
        <developer>
            <name>Miguel Griffa</name>
            <email>miguel.griffa@gmail.com</email>
            <roles>
                <role>Original Creator</role>
            </roles>
        </developer>
        <developer>
            <name>Markus Hoofe</name>
            <roles>
                <role>Contributer</role>
            </roles>
        </developer>
    </developers>

    <dependencies>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-plugin-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugin-tools</groupId>
            <artifactId>maven-plugin-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-model</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-artifact</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-compat</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>izpack-compiler</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>izpack-core</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>izpack-uninstaller</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>izpack-event</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>izpack-api</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>izpack-test-common</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugin-testing</groupId>
            <artifactId>maven-plugin-testing-harness</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>
      <pluginManagement>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-plugin-plugin</artifactId>
            <version>3.13.1</version>
          </plugin>
        </plugins>
      </pluginManagement>
      <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <configuration>
          <goalPrefix>izpack</goalPrefix>
          <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
        </configuration>
        <executions>
          <execution>
            <id>default-descriptor</id>
            <goals>
              <goal>descriptor</goal>
            </goals>
            <phase>process-classes</phase>
          </execution>
          <execution>
            <id>help-descriptor</id>
            <goals>
              <goal>helpmojo</goal>
            </goals>
            <phase>process-classes</phase>
          </execution>
        </executions>
      </plugin>
      </plugins>
    </build>
    <profiles>
        <profile>
            <id>run-its</id>
            <build>
                <plugins>
					<plugin>
						<artifactId>maven-invoker-plugin</artifactId>
						<version>3.7.0</version>
						<configuration>
						  <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
						  <settingsFile>src/it/settings.xml</settingsFile>
						  <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
						  <postBuildHookScript>validate</postBuildHookScript> <!-- no extension required -->
						  <showErrors>true</showErrors>
						</configuration>
						<executions>
						  <execution>
							<id>integration-test</id>
							<goals>
							  <goal>install</goal>
							  <goal>run</goal>
							</goals>
						  </execution>
						</executions>
					</plugin>					
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
