<?xml version="1.0" encoding="UTF-8"?>
<!--

   Copyright (C) 2010 Cloud Conscious, LLC <info@cloudconscious.com>

   ====================================================================
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF 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.html 

   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-project</artifactId>
        <version>1.0.0</version>
        <relativePath>../../project/pom.xml</relativePath>
    </parent>
    <groupId>org.jclouds.provider</groupId>
    <artifactId>savvis-symphonyvpdc</artifactId>
    <name>jclouds savvis-vpdc vpdc</name>
    <description>jclouds components to access Savvis Symphony VPDC</description>
    <packaging>bundle</packaging>
    
    <!-- bootstrapping: need to fetch the project POM -->
    <repositories>
        <repository>
            <id>jclouds-sonatype-snapshots-nexus</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>    
    </repositories>
    
    <properties>
        <!-- when instances are hung, open a ticket and add here -->
        <jclouds.compute.blacklist-nodes>node-924</jclouds.compute.blacklist-nodes>
        <test.savvis-symphonyvpdc.endpoint>https://api.symphonyvpdc.savvis.net/vpdc</test.savvis-symphonyvpdc.endpoint>
        <test.savvis-symphonyvpdc.apiversion>1.0</test.savvis-symphonyvpdc.apiversion>
        <test.savvis-symphonyvpdc.identity>FIXME</test.savvis-symphonyvpdc.identity>
        <test.savvis-symphonyvpdc.credential>FIXME</test.savvis-symphonyvpdc.credential>
        <test.savvis-symphonyvpdc.vdc-email>FIXME</test.savvis-symphonyvpdc.vdc-email>
        <test.savvis-symphonyvpdc.loginUser>FIXME</test.savvis-symphonyvpdc.loginUser>
        <test.savvis-symphonyvpdc.loginPassword>FIXME</test.savvis-symphonyvpdc.loginPassword>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.jclouds</groupId>
            <artifactId>jclouds-compute</artifactId>
            <version>${project.version}</version>
        </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</groupId>
            <artifactId>jclouds-core</artifactId>
            <version>${project.version}</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jclouds.driver</groupId>
            <artifactId>jclouds-jsch</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.jcraft</groupId>
            <artifactId>jsch</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.16</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jclouds.driver</groupId>
            <artifactId>jclouds-log4j</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.jamesmurty.utils</groupId>
            <artifactId>java-xmlbuilder</artifactId>
            <version>0.3</version>
        </dependency>
    </dependencies>
    <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>
                                	<threadCount>1</threadCount>
                                    <systemProperties>
                                        <property>
                                            <name>test.savvis-symphonyvpdc.endpoint</name>
                                            <value>${test.savvis-symphonyvpdc.endpoint}</value>
                                        </property>
                                        <property>
                                            <name>test.savvis-symphonyvpdc.apiversion</name>
                                            <value>${test.savvis-symphonyvpdc.apiversion}</value>
                                        </property>
                                        <property>
                                            <name>test.savvis-symphonyvpdc.identity</name>
                                            <value>${test.savvis-symphonyvpdc.identity}</value>
                                        </property>
                                        <property>
                                            <name>test.savvis-symphonyvpdc.credential</name>
                                            <value>${test.savvis-symphonyvpdc.credential}</value>
                                        </property>
                                        <property>
                                            <name>test.savvis-symphonyvpdc.vdc-email</name>
                                            <value>${test.savvis-symphonyvpdc.vdc-email}</value>
                                        </property>
                                        <property>
                                            <name>test.savvis-symphonyvpdc.loginUser</name>
                                            <value>${test.savvis-symphonyvpdc.loginUser}</value>
                                        </property>
                                        <property>
                                            <name>test.savvis-symphonyvpdc.loginPassword</name>
                                            <value>${test.savvis-symphonyvpdc.loginPassword}</value>
                                        </property>
                                        <property>
                                            <name>jclouds.compute.blacklist-nodes</name>
                                            <value>${jclouds.compute.blacklist-nodes}</value>
                                        </property>
                                    </systemProperties>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Export-Package>org.jclouds.savvis.vpdc.*;version="${project.version}"</Export-Package>
                        <Import-Package>org.jclouds.*;version="${project.version}",*</Import-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
