jclouds/labs/abiquo/pom.xml

233 lines
9.7 KiB
XML

<?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>org.jclouds</groupId>
<artifactId>jclouds-project</artifactId>
<version>1.6.0-SNAPSHOT</version>
<relativePath>../../project/pom.xml</relativePath>
</parent>
<groupId>org.jclouds.labs</groupId>
<artifactId>abiquo</artifactId>
<name>jclouds Abiquo api</name>
<description>jclouds components to access an implementation of Abiquo</description>
<packaging>bundle</packaging>
<properties>
<abiquomodel.version>2.2.0</abiquomodel.version>
<abiquoam.version>2.1.2</abiquoam.version>
<test.abiquo.endpoint>http://localhost/api</test.abiquo.endpoint>
<test.abiquo.identity>FIXME</test.abiquo.identity>
<test.abiquo.credential>FIXME</test.abiquo.credential>
<test.abiquo.api-version></test.abiquo.api-version>
<test.abiquo.build-version></test.abiquo.build-version>
<jclouds.osgi.export>org.jclouds.abiquo*;version="${project.version}"</jclouds.osgi.export>
<jclouds.osgi.import>org.jclouds*;version="${project.version}",*</jclouds.osgi.import>
</properties>
<!-- To be removed when the Abiquo deps are in Maven Central -->
<repositories>
<repository>
<id>abiquo-repo</id>
<name>Abiquo Maven Repository</name>
<url>http://repo.community.abiquo.com/repo</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.jclouds</groupId>
<artifactId>jclouds-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jclouds</groupId>
<artifactId>jclouds-compute</artifactId>
<version>${project.version}</version>
</dependency>
<!-- Abiquo -->
<dependency>
<groupId>com.abiquo</groupId>
<artifactId>api-model-transport</artifactId>
<version>${abiquomodel.version}</version>
<exclusions>
<exclusion>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.uncommons</groupId>
<artifactId>reportng</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.abiquo</groupId>
<artifactId>am-model</artifactId>
<version>${abiquoam.version}</version>
<exclusions>
<exclusion>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.uncommons</groupId>
<artifactId>reportng</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Required for class SyndLink (imported form RESTLink) : TODO remove this dependency -->
<dependency>
<groupId>org.apache.wink</groupId>
<artifactId>wink-common</artifactId>
<version>1.1-incubating</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</exclusion>
<exclusion>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</exclusion>
<exclusion>
<groupId>javax.xml.stream</groupId>
<artifactId>stax-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.jclouds</groupId>
<artifactId>jclouds-core</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jclouds</groupId>
<artifactId>jclouds-compute</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jclouds.driver</groupId>
<artifactId>jclouds-sshj</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jclouds.driver</groupId>
<artifactId>jclouds-slf4j</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
<exclude>**/*LiveTest.java</exclude>
<exclude>**/*LiveApiTest.java</exclude>
<exclude>**/*LiveUcsTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>live</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>integration</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<systemPropertyVariables>
<test.abiquo.identity>${test.abiquo.idenfity}</test.abiquo.identity>
<test.abiquo.credential>${test.abiquo.credential}</test.abiquo.credential>
<test.abiquo.api-version>${test.abiquo.api-version}</test.abiquo.api-version>
<test.abiquo.build-version>${test.abiquo.build-version}</test.abiquo.build-version>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>api</id>
<build>
<filters>
<filter>src/test/resources/filters/filters.properties</filter>
</filters>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>integration</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<!-- Infrastructure tests must not be executed in parallel.
They modify concurrently the same infrastructure resources. -->
<threadCount>1</threadCount>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>**/*LiveApiTest.java</include>
</includes>
<systemPropertyVariables>
<test.abiquo.identity>${test.abiquo.identity}</test.abiquo.identity>
<test.abiquo.credential>${test.abiquo.credential}</test.abiquo.credential>
<test.abiquo.api-version>${test.abiquo.api-version}</test.abiquo.api-version>
<test.abiquo.build-version>${test.abiquo.build-version}</test.abiquo.build-version>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>