<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>
        <artifactId>atlassian-universal-plugin-manager-test-resources</artifactId>
        <groupId>com.atlassian.upm</groupId>
        <version>5.1.7</version>
    </parent>

    <artifactId>atlassian-universal-plugin-manager-test-plugin-v2-obr-dep</artifactId>
    <packaging>atlassian-plugin</packaging>
    <name>Universal Plugin Manager - Test Plugin v2 (OBR Dependency)</name>

    <organization>
        <name>Example Company</name>
        <url>http://www.example.com/</url>
    </organization>

    <properties>
        <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.framework</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-javaconfig</artifactId>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <!-- we want the parse-version goal, but not any of the Rainicorn-related goals below -->
                <executions>
                    <execution>
                        <id>regex-property-trim</id>
                        <phase>none</phase>
                    </execution>
                    <execution>
                        <id>regex-property-dirty-step-1</id>
                        <phase>none</phase>
                    </execution>
                    <execution>
                        <id>regex-property-dirty-step-2</id>
                        <phase>none</phase>
                    </execution>
                    <execution>
                        <id>regex-property-dirty-step-3</id>
                        <phase>none</phase>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>refapp-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
                        <Export-Package>
                            com.example.obr.dep.*;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
                        </Export-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
