<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>
		<artifactId>softwaregateway</artifactId>
		<groupId>org.gcube.resourcemanagement</groupId>
		<version>1.1.0</version>
		<relativePath>..</relativePath>
	</parent>
	<groupId>org.gcube.resourcemanagement</groupId>
	<artifactId>softwaregateway-stubs</artifactId>
	<name>SoftwareGateway stubs</name>
	<description>Stubs for Software Gateway</description>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<dependencies>
		<!--dependency>
			<groupId>org.gcore</groupId>
			<artifactId>gcf</artifactId>
		</dependency>

		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>ghn-core-runtime</artifactId>
		</dependency-->
		<dependency>
			<groupId>org.gcube.core</groupId>
			<artifactId>gcf</artifactId>
			 <version>1.5.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</groupId>
			<artifactId>tree-manager-framework</artifactId>
			<version>[1.0.0-SNAPSHOT,2.0.0)</version>
		</dependency>
		
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>
				org.gcube.information-system.is-client
			</artifactId>
			<version>1.3.0-0-SNAPSHOT</version>
			<scope>test</scope>
		</dependency>
		
		<dependency>
			<groupId>org.gcube</groupId>
			<artifactId>
				org.gcube.information-system.collector-stubs
			</artifactId>
			<version>3.0.0-0-SNAPSHOT</version>
			<scope>test</scope>
		</dependency>		
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.6.4</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.mortbay.jetty</groupId>
			<artifactId>jetty</artifactId>
			<version>7.0.0.pre5</version>
		</dependency-->
	</dependencies>
	<build>
        <plugins>
             <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-resources-plugin</artifactId>
                    <version>2.5</version>
                    <executions>
                          <execution>
                              <id>copy-config</id>
                              <goals>
                                 <goal>copy-resources</goal>
                              </goals>
                              <phase>process-resources</phase>
                              <configuration>
                           		   <outputDirectory>${project.build.outputDirectory}/META-INF</outputDirectory>
                            	  <resources>
                            	  		<resource>
                            	        	<directory>${configDirectory}</directory>
                            	         </resource>
                            	  </resources>
                              </configuration>
                         </execution>
                   </executions>
            </plugin>

            <plugin>
                   <groupId>org.gcube.tools</groupId>
                   <artifactId>maven-service-plugin</artifactId>
                   <configuration>
                         <wsdls>
                            <wsdl>
                                <name>Access</name>
                                <namespace>${namespace}</namespace>
                            </wsdl>
                            <wsdl>
                                <name>Registration</name>
                                <namespace>${namespace}</namespace>
                            </wsdl>
                         </wsdls>
                     </configuration>
                     <executions>
                        <execution>
							<id>generate-stubs</id>
							<goals>
								<goal>stub-gen</goal>
							</goals>
						</execution>
                     </executions>
             </plugin>

             <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>process-sources</phase>
                        <goals>
                                <goal>add-source</goal>
                        </goals>
                        <configuration>
                                <sources>
                                    <source>${basedir}/target/generated-sources/stubs</source>
                                </sources>
                        </configuration>
                    </execution>
                </executions>
             </plugin>
      </plugins>
  </build>
</project>
