Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
inc-validator/pom.xml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
208 lines (185 sloc)
7.97 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-parent</artifactId> | |
<version>1.5.9.RELEASE</version> | |
</parent> | |
<groupId>uk.org.iay.incommon.validator</groupId> | |
<artifactId>inc-validator</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>Metadata Validation Micro-Service</name> | |
<description> | |
An metadata validation micro-service, implemented using | |
Spring Boot and the Shibboleth metadata aggregator framework. | |
</description> | |
<inceptionYear>2018</inceptionYear> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<spec.url>https://api.swaggerhub.com/apis/iay/inc-validator/1.0.0</spec.url> | |
<java.version>1.8</java.version> | |
<maven.compiler.source>${java.version}</maven.compiler.source> | |
<maven.compiler.target>${java.version}</maven.compiler.target> | |
<springfox-version>2.7.0</springfox-version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-tomcat</artifactId> | |
</dependency> | |
<!--SpringFox dependencies --> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-swagger2</artifactId> | |
<version>${springfox-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>io.springfox</groupId> | |
<artifactId>springfox-swagger-ui</artifactId> | |
<version>${springfox-version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.fasterxml.jackson.datatype</groupId> | |
<artifactId>jackson-datatype-joda</artifactId> | |
</dependency> | |
<!-- Bean Validation API support --> | |
<dependency> | |
<groupId>javax.validation</groupId> | |
<artifactId>validation-api</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<sourceDirectory>src/main/java</sourceDirectory> | |
<plugins> | |
<!-- Copy .swagger-codegen-ignore file into place. --> | |
<plugin> | |
<artifactId>maven-resources-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>copy-resources</id> | |
<phase>validate</phase> | |
<goals> | |
<goal>copy-resources</goal> | |
</goals> | |
<configuration> | |
<outputDirectory>${project.basedir}/target/generated-sources/swagger</outputDirectory> | |
<resources> | |
<resource> | |
<directory>${project.basedir}/swagger</directory> | |
<includes> | |
<include>.swagger-codegen-ignore</include> | |
</includes> | |
</resource> | |
</resources> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<!-- Generate code for the API using swagger-codegen. --> | |
<plugin> | |
<groupId>io.swagger</groupId> | |
<artifactId>swagger-codegen-maven-plugin</artifactId> | |
<version>2.3.1</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>generate</goal> | |
</goals> | |
<configuration> | |
<inputSpec>${spec.url}</inputSpec> | |
<language>spring</language> | |
<invokerPackage>uk.org.iay.incommon.validator</invokerPackage> | |
<modelPackage>uk.org.iay.incommon.validator.models</modelPackage> | |
<apiPackage>uk.org.iay.incommon.validator.api</apiPackage> | |
<interfaceOnly>false</interfaceOnly> | |
<useOptional>true</useOptional> | |
<delegatePattern>true</delegatePattern> | |
<!-- Set the following true if (when) you forget the options. --> | |
<configHelp>false</configHelp> | |
<configOptions> | |
<!-- date/time compatibility with MDA 0.9.x --> | |
<dateLibrary>joda</dateLibrary> | |
</configOptions> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<!-- | |
Ask Spring Boot to enhance the resulting .jar so that it is | |
directly executable. | |
--> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<executions> | |
<execution> | |
<goals> | |
<goal>repackage</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.eclipse.m2e</groupId> | |
<artifactId>lifecycle-mapping</artifactId> | |
<version>1.0.0</version> | |
<configuration> | |
<lifecycleMappingMetadata> | |
<pluginExecutions> | |
<pluginExecution> | |
<pluginExecutionFilter> | |
<groupId>io.swagger</groupId> | |
<artifactId>swagger-codegen-maven-plugin</artifactId> | |
<versionRange>[2.3.1,)</versionRange> | |
<goals> | |
<goal>generate</goal> | |
</goals> | |
</pluginExecutionFilter> | |
<action> | |
<execute /> | |
</action> | |
</pluginExecution> | |
</pluginExecutions> | |
</lifecycleMappingMetadata> | |
</configuration> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
<profiles> | |
<profile> | |
<id>lint</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<showDeprecation>true</showDeprecation> | |
<showWarnings>true</showWarnings> | |
<debug>true</debug> | |
<compilerArgument>-Xlint:unchecked</compilerArgument> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
<developers> | |
<developer> | |
<id>iay</id> | |
<name>Ian Young</name> | |
<organizationUrl>https://iay.org.uk/</organizationUrl> | |
<timezone>0</timezone> | |
</developer> | |
</developers> | |
</project> |