<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>
		<groupId>org.gcube.resourcemanagement</groupId>
		<artifactId>softwaregateway</artifactId>
		<relativePath>..</relativePath>
		<version>1.0.0</version>
	</parent>
	<artifactId>softwaregateway-service</artifactId>
	<name>softwaregateway-service</name>
	<description>software gateway service</description>
	<scm>
		<connection>scm:svn:https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/SoftwareGateway</connection>
		<developerConnection>scm:svn:ttps://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/SoftwareGateway</developerConnection>
		<url>https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/SoftwareGateway</url>
	</scm>
	<dependencies>
		<!--dependency>
			<groupId>org.gcore</groupId>
			<artifactId>gcf</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>ghn-core-runtime</artifactId>
			<scope>provided</scope>
		</dependency-->
		<dependency>
				<groupId>org.gcube.core</groupId>
				<artifactId>gcf</artifactId>
				 <version>1.4.0</version>
				 <scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.gcube.distribution</groupId>
				<artifactId>ghn-core-runtime</artifactId>
				<version>1.0.0</version>
				<scope>provided</scope>
			</dependency>
		<dependency>
			<groupId>org.gcube.resourcemanagement</groupId>
			<artifactId>softwaregateway-stubs</artifactId>
			<version>${project.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.gcube.tools</groupId>
			<artifactId>my-container</artifactId>
			<version>1.0.0</version>
			<scope>test</scope>
		</dependency>
		
		<dependency>
			<groupId>commons-httpclient</groupId>
			<artifactId>commons-httpclient</artifactId>
			<version>3.0.1</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.3.1</version>
		</dependency>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.0.4</version>
		</dependency>
		<!--dependency>
			<groupId>org.gcube</groupId>
			<artifactId>vremanagement-mavencustom</artifactId>
			<version>1.0.0</version>
		</dependency-->
		<dependency>
			<groupId>org.gcube.externals</groupId>
			<artifactId>mavencustom</artifactId>
			<version>2.0.9</version>
		</dependency>
		<dependency>
			<groupId>net.sf.ehcache</groupId>
			<artifactId>ehcache-core</artifactId>
			<version>2.5.1</version>
		</dependency>
		<dependency>
    		<groupId>org.mortbay.jetty</groupId>
    		<artifactId>jetty</artifactId>
    		<version>7.0.0.pre5</version>
		</dependency>
		<dependency>
			<groupId>commons-compress</groupId>
			<artifactId>commons-compress</artifactId>
			<version>20050911</version>
		</dependency>
		<!--dependency>
			<groupId>org.gcube.informationsystem</groupId>
			<artifactId>is-client</artifactId>
			<version>1.3.0-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>org.gcube.informationsystem</groupId>
			<artifactId>is-collector-stubs</artifactId>
			<version>3.0.0-SNAPSHOT</version>
		</dependency-->
	</dependencies>
	<profiles>
		<profile>
			<id>local-deploy</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.gcube.tools</groupId>
						<artifactId>maven-service-plugin</artifactId>
						<executions>
							<execution>
								<phase>package</phase>
								<goals>
									<goal>local-deploy</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

	</profiles>
	<build>
		<plugins>
			 <!-- generates service archive -->
            <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.2</version>
                    <configuration>
                            <descriptors>
                                    <descriptor>${distroDirectory}/descriptor.xml</descriptor>
                            </descriptors>
                    </configuration>
                    <executions>
                            <execution>
                                    <id>servicearchive</id>
                                    <phase>install</phase>
                                    <goals>
                                            <goal>single</goal>
                                    </goals>
                            </execution>
                    </executions>
            </plugin>
			<plugin>
				<groupId>org.gcube.tools</groupId>
				<artifactId>maven-service-plugin</artifactId>
				<executions>
					<execution>
						<id>make-gar</id>
						<goals>
							<goal>gar-gen</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.3</version><!--$NO-MVN-MAN-VER$ -->
				<executions>
					<execution>
						<id>install-my-container</id>
						<phase>generate-test-resources</phase>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>org.gcube.tools</groupId>
									<artifactId>my-container</artifactId>
									<version>1.0.0</version>
									<type>tar.gz</type>
									<classifier>distro</classifier>
									<overWrite>false</overWrite>
									<outputDirectory>${project.basedir}</outputDirectory>
								</artifactItem>
							</artifactItems>
							<markersDirectory>${project.basedir}</markersDirectory>
						</configuration>
						<goals>
							<goal>unpack</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

		</plugins>

	</build>

	<!--profiles>
		<profile>
			<id>SA</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-assembly-plugin</artifactId>
						<version>2.2</version>
						<configuration>
							<descriptors>
								<descriptor>../distro/descriptor.xml</descriptor>
							</descriptors>
						</configuration>
						<executions>
							<execution>
								<id>servicearchive</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>

		</profile>
	</profiles-->
</project>
