Source

atlassian-rest / atlassian-rest-refimpl-plugin / pom.xml

Full commit
<?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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.atlassian.plugins.rest</groupId>
        <artifactId>atlassian-rest-parent</artifactId>
        <version>2.6.8</version>
    </parent>

    <artifactId>atlassian-rest-refimpl-plugin</artifactId>
    <packaging>atlassian-plugin</packaging>
    <name>Atlassian REST - Reference Implementation Plugin</name>
    <description>A plugin that allow testing of the REST module types</description>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-core</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>atlassian-rest-module</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-servlet</artifactId>
            <version>${plug.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
            <version>${jersey.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.xml.bind</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.1.10</version>
            <scope>test</scope>
        </dependency>


        <!-- necessary to ensure it is built before this plugin -->
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-refimpl-plugin-v2</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-amps-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${refapp.version}</productVersion>
                    <log4jProperties>${basedir}/src/main/webapp/log4j.properties</log4jProperties>
                    <instructions>
                        <Import-Package>
                            com.atlassian.plugins.rest.common.util,
                            *;resolution:=optional
                        </Import-Package>
                    </instructions>
                    <systemPropertyVariables>
                        <allowXOrigin>true</allowXOrigin>
                    </systemPropertyVariables>
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.plugins.rest</groupId>
                            <artifactId>atlassian-rest-refimpl-plugin-v2</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.plugins.rest</groupId>
                            <artifactId>atlassian-rest-module</artifactId>
                            <version>${project.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    <products>
                        <product>
                            <id>refapp</id>
                            <instanceId>refapp1</instanceId>
                            <httpPort>5990</httpPort>
                            <version>${refapp.version}</version>
                            <systemPropertyVariables>
                                <atlassian.allow.jsonp>true</atlassian.allow.jsonp>
                            </systemPropertyVariables>
                        </product>
                        <product>
                            <id>refapp</id>
                            <instanceId>refapp2</instanceId>
                            <httpPort>5992</httpPort>
                            <version>${refapp.version}</version>
                        </product>
                    </products>
                    <testGroups>
                        <testGroup>
                            <id>refapp_jsonp_enabled</id>
                            <productIds>
                                <productId>refapp1</productId>
                            </productIds>
                            <includes>
                                <include>it/**/*Test.java</include>
                            </includes>
                            <excludes>
                                <exclude>it/**/JsonWithPaddingDisabledTest.java</exclude>
                            </excludes>
                        </testGroup>
                        <testGroup>
                            <id>refapp_jsonp_disabled</id>
                            <productIds>
                                <productId>refapp2</productId>
                            </productIds>
                            <includes>
                                <include>it/**/*Test.java</include>
                            </includes>
                            <excludes>
                                <exclude>it/**/JsonWithPaddingTest.java</exclude>
                            </excludes>
                        </testGroup>
                    </testGroups>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>