All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources.pom.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<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-superpom</artifactId>
		<version>${serviceSdkVersion}</version>
		<relativePath/>
	</parent>

	<groupId>${groupId}</groupId>
	<artifactId>${artifactId}</artifactId>
	<version>${version}</version>
	<packaging>jar</packaging>

	<properties>
		<!-- YaaS Service SDK Version -->
		<service-sdk.version>${serviceSdkVersion}</service-sdk.version>

		<!-- hybris projects -->
		<raml-patterns.version>2.0.4</raml-patterns.version>

		<!-- libraries -->
		<commons.io.version>2.5</commons.io.version>
		<commons.lang3.version>3.6</commons.lang3.version>
		<cors.filter.version>2.6</cors.filter.version>
		<slf4j.version>1.7.25</slf4j.version>
		<jaxrs.version>2.1</jaxrs.version>
		<jackson.version>2.5.4</jackson.version>
		<jersey.version>2.24</jersey.version>
		<javax.servlet.version>4.0.0</javax.servlet.version>
		<spring.version>4.3.11.RELEASE</spring.version>
		<spring-boot.version>1.5.7.RELEASE</spring-boot.version>

		<!-- test libraries -->
		<apache.httpclient.version>4.5.3</apache.httpclient.version>
		<junit.version>4.12</junit.version>
		<mockito.version>1.10.19</mockito.version>
		<mock.server.version>3.9.1</mock.server.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>com.sap.cloud.yaas.service-sdk</groupId>
			<artifactId>service-sdk-libraries</artifactId>
			<version>${service-sdk.version}</version>
		</dependency>
		<dependency>
			<groupId>com.sap.cloud.yaas.service-sdk</groupId>
			<artifactId>service-sdk-authorization</artifactId>
			<version>${service-sdk.version}</version>
		</dependency>
		<dependency>
			<groupId>com.sap.cloud.yaas.service-sdk</groupId>
			<artifactId>service-sdk-spring-boot-starter</artifactId>
			<version>${service-sdk.version}</version>
		</dependency>
		<dependency>
			<groupId>com.sap.cloud.yaas.patterns</groupId>
			<artifactId>raml-patterns</artifactId>
			<version>${raml-patterns.version}</version>
			<classifier>hybris-api</classifier>
			<type>zip</type>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-jersey</artifactId>
			<version>${spring-boot.version}</version>
		</dependency>

		<!-- Testing Dependencies -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
			<version>${junit.version}</version>
		</dependency>
		<dependency>
			<groupId>org.glassfish.jersey.test-framework.providers</groupId>
			<artifactId>jersey-test-framework-provider-grizzly2</artifactId>
			<version>${jersey.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>${mockito.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.mock-server</groupId>
			<artifactId>mockserver-netty</artifactId>
			<version>${mock.server.version}</version>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>ch.qos.logback</groupId>
					<artifactId>logback-classic</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.slf4j</groupId>
					<artifactId>slf4j-log4j12</artifactId>
				</exclusion>
				<exclusion>
					<groupId>commons-io</groupId>
					<artifactId>commons-io</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<version>${spring.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<version>${spring-boot.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>${apache.httpclient.version}</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<finalName>${artifactId}</finalName>
		<plugins>
			<!-- Plugin required to build API models and resources. This dependency
				should not be removed. -->
			<plugin>
				<groupId>com.sap.cloud.yaas.service-sdk</groupId>
				<artifactId>service-sdk-generator-maven-plugin</artifactId>
				<version>${service-sdk.version}</version>
				<configuration>
					<async>${asyncApi}</async>
					<sourceRamlFile>src/main/resources/public/meta-data/api.raml</sourceRamlFile>
					<inputFolders>
						<inputFolder>src/main/resources/public/meta-data</inputFolder>
					</inputFolders>
					<outputFolderMainGenerated>src/main/java</outputFolderMainGenerated>
					<outputPackageName>${package}.api</outputPackageName>
					<outputSubpackageNameDto>dto</outputSubpackageNameDto>
					<outputSubpackageNameImpl>impl</outputSubpackageNameImpl>
					<outputSubpackageNameParam>param</outputSubpackageNameParam>
					<outputFieldPrefixEnabled>false</outputFieldPrefixEnabled>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<version>${spring-boot.version}</version>
				<executions>
					<execution>
						<goals>
							<goal>repackage</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<mainClass>${start-class}</mainClass>
				</configuration>
			</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>[${service-sdk.version},)</versionRange>
										<goals>
											<goal>generate-service</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore/>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

</project>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy