2012-02-13 06:32:35 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
|
|
|
|
Licensed to jclouds, Inc. (jclouds) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. jclouds licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
|
|
|
|
-->
|
|
|
|
<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-demos-tweetstore-project</artifactId>
|
|
|
|
<version>1.5.0-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
<artifactId>jclouds-demo-rhcloud-tweetstore</artifactId>
|
|
|
|
<packaging>war</packaging>
|
|
|
|
<name>jclouds TweetStore for OpenShift Express</name>
|
|
|
|
<description>jclouds TweetStore for RedHat's OpenShift Express using Guice for Dependency Injection</description>
|
|
|
|
|
|
|
|
<properties>
|
2012-02-17 16:29:36 -05:00
|
|
|
<rhcloud.jboss.version>7.0.2.Final</rhcloud.jboss.version>
|
2012-05-01 16:48:05 -04:00
|
|
|
<test.jboss.address>localhost</test.jboss.address>
|
|
|
|
<test.jboss.port>8088</test.jboss.port>
|
2012-02-13 06:32:35 -05:00
|
|
|
<jclouds.tweetstore.container>jclouds-rhcloud-tweetstore</jclouds.tweetstore.container>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.inject.extensions</groupId>
|
|
|
|
<artifactId>guice-servlet</artifactId>
|
|
|
|
<version>3.0</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- OpenShift Express uses JBoss AS 7 -->
|
2012-02-17 16:29:36 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.as</groupId>
|
|
|
|
<artifactId>jboss-as-embedded</artifactId>
|
|
|
|
<version>${rhcloud.jboss.version}</version>
|
2012-02-13 06:32:35 -05:00
|
|
|
<scope>test</scope>
|
2012-02-17 16:29:36 -05:00
|
|
|
<exclusions>
|
|
|
|
<!-- loading the LogManager here leads to ClassCastExceptions because
|
|
|
|
the server uses a different classloader -->
|
|
|
|
<exclusion>
|
|
|
|
<artifactId>jboss-logmanager</artifactId>
|
|
|
|
<groupId>org.jboss.logmanager</groupId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2012-04-11 01:42:07 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
|
|
<artifactId>plexus-archiver</artifactId>
|
|
|
|
<version>2.1.1</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2012-02-13 06:32:35 -05:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>live</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>integration</id>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<test.twitter.consumer.identity>${test.twitter.runatcloud-tweetstore.consumer.identity}</test.twitter.consumer.identity>
|
|
|
|
<test.twitter.consumer.credential>${test.twitter.runatcloud-tweetstore.consumer.credential}</test.twitter.consumer.credential>
|
|
|
|
<test.twitter.access.identity>${test.twitter.runatcloud-tweetstore.access.identity}</test.twitter.access.identity>
|
|
|
|
<test.twitter.access.credential>${test.twitter.runatcloud-tweetstore.access.credential}</test.twitter.access.credential>
|
|
|
|
<test.azureblob.identity>${test.azureblob.identity}</test.azureblob.identity>
|
|
|
|
<test.azureblob.credential>${test.azureblob.credential}</test.azureblob.credential>
|
|
|
|
<test.cloudfiles-us.identity>${test.cloudfiles-us.identity}</test.cloudfiles-us.identity>
|
|
|
|
<test.cloudfiles-us.credential>${test.cloudfiles-us.credential}</test.cloudfiles-us.credential>
|
|
|
|
<test.aws-s3.identity>${test.aws-s3.identity}</test.aws-s3.identity>
|
|
|
|
<test.aws-s3.credential>${test.aws-s3.credential}</test.aws-s3.credential>
|
|
|
|
<test.cloudonestorage.identity>${test.cloudonestorage.identity}</test.cloudonestorage.identity>
|
|
|
|
<test.cloudonestorage.credential>${test.cloudonestorage.credential}</test.cloudonestorage.credential>
|
|
|
|
<test.ninefold-storage.identity>${test.ninefold-storage.identity}</test.ninefold-storage.identity>
|
|
|
|
<test.ninefold-storage.credential>${test.ninefold-storage.credential}</test.ninefold-storage.credential>
|
2012-05-01 16:48:05 -04:00
|
|
|
<jboss.home>${rhcloud.jboss.home}</jboss.home>
|
|
|
|
<jboss.address>${test.jboss.address}</jboss.address>
|
|
|
|
<jboss.port>${test.jboss.port}</jboss.port>
|
2012-02-13 06:32:35 -05:00
|
|
|
<jclouds.tweetstore.blobstores>${jclouds.tweetstore.blobstores}</jclouds.tweetstore.blobstores>
|
|
|
|
<jclouds.tweetstore.container>test.${jclouds.tweetstore.container}</jclouds.tweetstore.container>
|
2012-02-17 16:29:36 -05:00
|
|
|
<jboss.embedded.root>${project.build.directory}/rhcloud-jboss</jboss.embedded.root>
|
|
|
|
<jboss.server.config.dir>${project.basedir}/src/test/resources/jbossas7/configuration</jboss.server.config.dir>
|
|
|
|
<warfile>${project.build.directory}/${project.build.finalName}</warfile>
|
2012-02-13 06:32:35 -05:00
|
|
|
</systemPropertyVariables>
|
2012-02-17 16:29:36 -05:00
|
|
|
<environmentVariables>
|
2012-05-01 16:48:05 -04:00
|
|
|
<OPENSHIFT_INTERNAL_IP>${test.jboss.address}</OPENSHIFT_INTERNAL_IP>
|
|
|
|
<OPENSHIFT_INTERNAL_PORT>${test.jboss.port}</OPENSHIFT_INTERNAL_PORT>
|
2012-02-17 16:29:36 -05:00
|
|
|
</environmentVariables>
|
2012-02-13 06:32:35 -05:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>deploy</id>
|
|
|
|
<properties>
|
|
|
|
<!-- classifier to choose the correct jclouds.properties file -->
|
|
|
|
<tweetstore.instance>rhcloud-tweetstore</tweetstore.instance>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|