Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <parent> |
| 6 | <groupId>org.onap.oparent</groupId> |
| 7 | <artifactId>oparent</artifactId> |
| 8 | <version>3.1.0</version> |
| 9 | <relativePath/> |
| 10 | </parent> |
| 11 | <modelVersion>4.0.0</modelVersion> |
| 12 | |
| 13 | <groupId>org.onap.cps</groupId> |
| 14 | <artifactId>cps-parent</artifactId> |
| 15 | <version>0.0.1-SNAPSHOT</version> |
| 16 | <packaging>pom</packaging> |
| 17 | |
| 18 | <properties> |
| 19 | <java.version>11</java.version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 20 | <oparent.version>3.1.0</oparent.version> |
| 21 | <spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version> |
puthuparambil.aditya | 4759811 | 2020-11-02 11:31:39 +0000 | [diff] [blame] | 22 | <swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 23 | </properties> |
| 24 | |
| 25 | <dependencyManagement> |
| 26 | <dependencies> |
| 27 | <dependency> |
| 28 | <groupId>org.onap.cps</groupId> |
| 29 | <artifactId>cps-dependencies</artifactId> |
| 30 | <version>${project.version}</version> |
| 31 | <type>pom</type> |
| 32 | <scope>import</scope> |
| 33 | </dependency> |
| 34 | <dependency> |
| 35 | <groupId>org.onap.cps</groupId> |
| 36 | <artifactId>cps-bom</artifactId> |
| 37 | <version>${project.version}</version> |
| 38 | <type>pom</type> |
| 39 | <scope>import</scope> |
| 40 | </dependency> |
| 41 | </dependencies> |
| 42 | </dependencyManagement> |
| 43 | |
| 44 | <build> |
| 45 | <resources> |
| 46 | <resource> |
| 47 | <directory>src/main/resources</directory> |
| 48 | <filtering>true</filtering> |
| 49 | </resource> |
| 50 | <resource> |
| 51 | <directory>target/generated-sources/license</directory> |
| 52 | <includes> |
| 53 | <include>third-party-licenses.txt</include> |
| 54 | </includes> |
| 55 | </resource> |
| 56 | <resource> |
| 57 | <directory>target/generated-resources/licenses</directory> |
| 58 | <includes> |
| 59 | <include>*.*</include> |
| 60 | </includes> |
| 61 | <targetPath>third-party-licenses</targetPath> |
| 62 | </resource> |
| 63 | </resources> |
| 64 | <pluginManagement> |
| 65 | <plugins> |
| 66 | <plugin> |
| 67 | <groupId>org.springframework.boot</groupId> |
| 68 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 69 | <version>${spring-boot-maven-plugin.version}</version> |
| 70 | <executions> |
| 71 | <execution> |
| 72 | <goals> |
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 73 | <goal>build-info</goal> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 74 | <goal>repackage</goal> |
| 75 | </goals> |
| 76 | </execution> |
| 77 | </executions> |
| 78 | </plugin> |
puthuparambil.aditya | 4759811 | 2020-11-02 11:31:39 +0000 | [diff] [blame] | 79 | <!-- Swagger code generation. --> |
| 80 | <plugin> |
| 81 | <groupId>io.swagger.codegen.v3</groupId> |
| 82 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 83 | <version>${swagger-codegen-maven-plugin.version}</version> |
| 84 | <executions> |
| 85 | <execution> |
| 86 | <goals> |
| 87 | <goal>generate</goal> |
| 88 | </goals> |
| 89 | <configuration> |
| 90 | <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec> |
| 91 | <invokerPackage>org.onap.cps.rest.controller</invokerPackage> |
| 92 | <modelPackage>org.onap.cps.rest.model</modelPackage> |
| 93 | <apiPackage>org.onap.cps.rest.api</apiPackage> |
| 94 | <language>spring</language> |
| 95 | <generateSupportingFiles>false</generateSupportingFiles> |
| 96 | <configOptions> |
| 97 | <sourceFolder>src/gen/java</sourceFolder> |
| 98 | <dateLibrary>java11</dateLibrary> |
| 99 | <interfaceOnly>true</interfaceOnly> |
| 100 | <useTags>true</useTags> |
| 101 | </configOptions> |
| 102 | </configuration> |
| 103 | </execution> |
| 104 | </executions> |
| 105 | </plugin> |
Claudio David Gasparini | 70c1702 | 2020-10-26 10:12:10 +0100 | [diff] [blame] | 106 | </plugins> |
| 107 | </pluginManagement> |
| 108 | <plugins> |
| 109 | <plugin> |
| 110 | <groupId>org.apache.maven.plugins</groupId> |
| 111 | <artifactId>maven-compiler-plugin</artifactId> |
| 112 | <configuration> |
| 113 | <source>${java.version}</source> |
| 114 | <target>${java.version}</target> |
| 115 | </configuration> |
| 116 | </plugin> |
| 117 | <plugin> |
| 118 | <groupId>org.apache.maven.plugins</groupId> |
| 119 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 120 | <executions> |
| 121 | <execution> |
| 122 | <id>onap-java-style</id> |
| 123 | <goals> |
| 124 | <goal>check</goal> |
| 125 | </goals> |
| 126 | <phase>process-sources</phase> |
| 127 | <configuration> |
| 128 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 129 | <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories> |
| 130 | <includeResources>true</includeResources> |
| 131 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 132 | <includeTestResources>true</includeTestResources> |
| 133 | <consoleOutput>false</consoleOutput> |
| 134 | <violationSeverity>warning</violationSeverity> |
| 135 | <failOnViolation>true</failOnViolation> |
| 136 | </configuration> |
| 137 | </execution> |
| 138 | </executions> |
| 139 | <dependencies> |
| 140 | <dependency> |
| 141 | <groupId>org.onap.oparent</groupId> |
| 142 | <artifactId>checkstyle</artifactId> |
| 143 | <version>${oparent.version}</version> |
| 144 | </dependency> |
| 145 | </dependencies> |
| 146 | </plugin> |
| 147 | <!-- Mandatory plugins for using Spock --> |
| 148 | <plugin> |
| 149 | <!-- The gmavenplus plugin is used to compile Groovy code. |
| 150 | To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki --> |
| 151 | <groupId>org.codehaus.gmavenplus</groupId> |
| 152 | <artifactId>gmavenplus-plugin</artifactId> |
| 153 | <version>1.9.0</version> |
| 154 | <executions> |
| 155 | <execution> |
| 156 | <goals> |
| 157 | <goal>compileTests</goal> |
| 158 | </goals> |
| 159 | </execution> |
| 160 | </executions> |
| 161 | </plugin> |
| 162 | <!-- Required because names of spec classes don't match default |
| 163 | Surefire patterns (`*Test` etc.) --> |
| 164 | <plugin> |
| 165 | <groupId>org.apache.maven.plugins</groupId> |
| 166 | <artifactId>maven-surefire-plugin</artifactId> |
| 167 | <version>3.0.0-M5</version> |
| 168 | <configuration> |
| 169 | <useFile>false</useFile> |
| 170 | <includes> |
| 171 | <include>**/*Spec.java</include> |
| 172 | <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests --> |
| 173 | </includes> |
| 174 | </configuration> |
| 175 | </plugin> |
| 176 | </plugins> |
| 177 | </build> |
| 178 | </project> |