puthuparambil.aditya | f9c5e6c | 2022-05-12 16:31:00 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2022 Bell Canada |
| 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | |
| 18 | SPDX-License-Identifier: Apache-2.0 |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
| 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | <parent> |
| 27 | <groupId>org.onap.cps</groupId> |
| 28 | <artifactId>cps-parent</artifactId> |
mpriyank | fd43dbe | 2023-02-08 11:21:08 +0000 | [diff] [blame] | 29 | <version>3.2.3-SNAPSHOT</version> |
puthuparambil.aditya | f9c5e6c | 2022-05-12 16:31:00 +0100 | [diff] [blame] | 30 | <relativePath>../cps-parent/pom.xml</relativePath> |
| 31 | </parent> |
| 32 | |
| 33 | <artifactId>cps-ncmp-rest-stub</artifactId> |
| 34 | <properties> |
| 35 | <app>org.onap.cps.ncmp.rest.stub.Application</app> |
| 36 | <java.version>11</java.version> |
| 37 | <jacoco.reportDirectory.aggregate>${project.reporting.outputDirectory}/jacoco-aggregate</jacoco.reportDirectory.aggregate> |
| 38 | <sonar.coverage.jacoco.xmlReportPaths> |
| 39 | ../jacoco-report/target/site/jacoco-aggregate/jacoco.xml |
| 40 | </sonar.coverage.jacoco.xmlReportPaths> |
| 41 | <groovy.version>3.0.8</groovy.version> |
| 42 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 43 | <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> |
| 44 | <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath> |
| 45 | <sonar.skip>true</sonar.skip> |
| 46 | <mapstruct.version>1.4.2.Final</mapstruct.version> |
| 47 | </properties> |
| 48 | |
| 49 | <dependencies> |
| 50 | <dependency> |
| 51 | <groupId>io.swagger.core.v3</groupId> |
| 52 | <artifactId>swagger-annotations</artifactId> |
| 53 | <version>2.1.4</version> |
| 54 | </dependency> |
| 55 | <dependency> |
| 56 | <groupId>org.springframework.boot</groupId> |
| 57 | <artifactId>spring-boot-starter-web</artifactId> |
| 58 | <exclusions> |
| 59 | <exclusion> |
| 60 | <groupId>org.springframework.boot</groupId> |
| 61 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 62 | </exclusion> |
| 63 | </exclusions> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.springframework.boot</groupId> |
| 67 | <artifactId>spring-boot-starter-validation</artifactId> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>org.springframework.boot</groupId> |
| 71 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>org.mapstruct</groupId> |
| 75 | <artifactId>mapstruct</artifactId> |
| 76 | <version>${mapstruct.version}</version> |
| 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>org.mapstruct</groupId> |
| 80 | <artifactId>mapstruct-processor</artifactId> |
| 81 | <version>${mapstruct.version}</version> |
| 82 | </dependency> |
| 83 | <!-- T E S T D E P E N D E N C I E S --> |
| 84 | <dependency> |
| 85 | <groupId>org.projectlombok</groupId> |
| 86 | <artifactId>lombok</artifactId> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 --> |
| 90 | <groupId>org.slf4j</groupId> |
| 91 | <artifactId>slf4j-simple</artifactId> |
| 92 | <version>1.8.0-beta4</version> |
| 93 | </dependency> |
| 94 | <dependency> |
puthuparambil.aditya | f9c5e6c | 2022-05-12 16:31:00 +0100 | [diff] [blame] | 95 | <groupId>cglib</groupId> |
| 96 | <artifactId>cglib-nodep</artifactId> |
| 97 | <scope>test</scope> |
| 98 | <version>3.1</version> |
| 99 | </dependency> |
| 100 | <dependency> |
| 101 | <groupId>com.google.code.gson</groupId> |
| 102 | <artifactId>gson</artifactId> |
| 103 | </dependency> |
| 104 | <dependency> |
| 105 | <groupId>org.onap.cps</groupId> |
| 106 | <artifactId>cps-ncmp-rest</artifactId> |
| 107 | <exclusions> |
| 108 | <exclusion> |
| 109 | <groupId>org.onap.cps</groupId> |
| 110 | <artifactId>cps-ncmp-service</artifactId> |
| 111 | </exclusion> |
| 112 | </exclusions> |
| 113 | <optional>true</optional> |
| 114 | </dependency> |
| 115 | </dependencies> |
| 116 | |
| 117 | <build> |
| 118 | <plugins> |
| 119 | <!-- Swagger code generation. --> |
| 120 | <plugin> |
| 121 | <groupId>org.apache.maven.plugins</groupId> |
| 122 | <artifactId>maven-compiler-plugin</artifactId> |
| 123 | <version>2.3.2</version> |
| 124 | <configuration> |
| 125 | <source>${java.version}</source> |
| 126 | <target>${java.version}</target> |
| 127 | </configuration> |
| 128 | </plugin> |
| 129 | |
| 130 | <plugin> |
| 131 | <groupId>org.apache.maven.plugins</groupId> |
| 132 | <artifactId>maven-shade-plugin</artifactId> |
| 133 | <dependencies> |
| 134 | <dependency> |
| 135 | <groupId>org.springframework.boot</groupId> |
| 136 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 137 | <version>1.2.7.RELEASE</version> |
| 138 | </dependency> |
| 139 | </dependencies> |
| 140 | <configuration> |
| 141 | <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope> |
| 142 | <createDependencyReducedPom>true</createDependencyReducedPom> |
| 143 | <filters> |
| 144 | <filter> |
| 145 | <artifact>*:*</artifact> |
| 146 | <excludes> |
| 147 | <exclude>org/onap/cps/ncmp/rest/controller/**</exclude> |
| 148 | </excludes> |
| 149 | </filter> |
| 150 | </filters> |
| 151 | </configuration> |
| 152 | <executions> |
| 153 | <execution> |
| 154 | <phase>package</phase> |
| 155 | <goals> |
| 156 | <goal>shade</goal> |
| 157 | </goals> |
| 158 | <configuration> |
| 159 | <transformers> |
| 160 | <transformer |
| 161 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 162 | <resource>META-INF/spring.handlers</resource> |
| 163 | </transformer> |
| 164 | <transformer |
| 165 | implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer"> |
| 166 | <resource>META-INF/spring.factories</resource> |
| 167 | </transformer> |
| 168 | <transformer |
| 169 | implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 170 | <resource>META-INF/spring.schemas</resource> |
| 171 | </transformer> |
| 172 | <transformer |
| 173 | implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 174 | <transformer |
| 175 | implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 176 | <mainClass>org/onap/cps/ncmp/rest/stub/Application</mainClass> |
| 177 | </transformer> |
| 178 | </transformers> |
| 179 | </configuration> |
| 180 | </execution> |
| 181 | </executions> |
| 182 | </plugin> |
| 183 | </plugins> |
| 184 | </build> |
| 185 | </project> |