<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>
    <parent>
        <groupId>biz.aQute.bnd</groupId>
        <artifactId>bnd-plugin-parent</artifactId>
        <version>3.3.0</version>
        <relativePath>..</relativePath>
    </parent>
	<artifactId>bnd-export-maven-plugin</artifactId>
	<description>Resolve and Export OSGi applications.</description>
	<name>${project.groupId}:${project.artifactId}</name>
    <packaging>maven-plugin</packaging>

    <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>
        </dependency>
        <dependency>
            <groupId>biz.aQute.bnd</groupId>
            <artifactId>biz.aQute.bndlib</artifactId>
        </dependency>
        <dependency>
            <groupId>biz.aQute.bnd</groupId>
            <artifactId>biz.aQute.resolve</artifactId>
        </dependency>
        <dependency>
            <groupId>biz.aQute.bnd</groupId>
            <artifactId>biz.aQute.repository</artifactId>
        </dependency>
        
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <version>3.2.2</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-invoker-plugin</artifactId>
                <configuration>
                    <cloneProjectsTo>${project.build.directory}/integration-test/projects</cloneProjectsTo>
                    <cloneClean>true</cloneClean>
                    <projectsDirectory>src/test/resources/integration-test</projectsDirectory>
                    <settingsFile>src/test/resources/integration-test/settings.xml</settingsFile>
                    <localRepositoryPath>${project.build.directory}/integration-test/repo</localRepositoryPath>
                    <postBuildHookScript>verify.groovy</postBuildHookScript>
                    <goals>
                        <goal>package</goal>
                    </goals>
                    <debug>true</debug>
                    <scriptVariables>
                      <bndVersion>${project.version}</bndVersion>
                    </scriptVariables>
                </configuration>
                <executions>
                    <execution>
                        <id>integration-test</id>
                        <goals>
                            <goal>install</goal>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
