<?xml version="1.0"?>
<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>com.sap.cloud.yaas.service-sdk</groupId>
		<artifactId>service-sdk-libraries-project</artifactId>
		<version>4.17.0</version>
	</parent>

	<artifactId>service-sdk-ping</artifactId>
	<name>service-sdk-ping</name>
	<description>The ping library</description>
	<packaging>jar</packaging>
	
	<properties>
	<versioneye.projectId>599c5558d3ee07000e5e1327</versioneye.projectId>
	</properties>
	
	<dependencies>
 		<dependency>
			<groupId>javax.ws.rs</groupId>
			<artifactId>javax.ws.rs-api</artifactId>
		</dependency>
		
		<dependency>
			<groupId>org.glassfish.jersey.test-framework.providers</groupId>
			<artifactId>jersey-test-framework-provider-grizzly2</artifactId>
			<version>${jersey.version}</version>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<artifactId>junit</artifactId>
					<groupId>junit</groupId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>
	
	<build>
		<plugins>
			<plugin>
				<groupId>com.sap.cloud.yaas.service-sdk</groupId>
				<artifactId>service-sdk-generator-maven-plugin</artifactId>
				<version>${project.version}</version>
				<executions>
					<execution>
						<configuration>
							<sourceRamlFile>/src/main/resources/meta-data/ping.raml</sourceRamlFile>
							<outputPackageName>com.sap.cloud.yaas.servicesdk.ping</outputPackageName>
							<outputApiTitle>Ping</outputApiTitle>
							<outputFolderMainResources>/target/generated-sources/main/resources/META-INF</outputFolderMainResources>
						</configuration>
						<goals>
							<goal>generate-service</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											com.sap.cloud.yaas.service-sdk
										</groupId>
										<artifactId>
											service-sdk-generator-maven-plugin
										</artifactId>
										<versionRange>
											[1,)
										</versionRange>
										<goals>
											<goal>generate-service</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	
	<profiles>
		<profile>
			<id>deploy-nexus</id>
			<properties>
				<metadata.source.directory>${project.parent.parent.basedir}/src/metadata</metadata.source.directory>
				<metadata.artifactId>${project.parent.parent.artifactId}</metadata.artifactId>
			</properties>
		</profile>
	</profiles>
</project>
