| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ============LICENSE_START======================================================= |
| Copyright (C) 2019 Nordix Foundation. |
| ================================================================================ |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| SPDX-License-Identifier: Apache-2.0 |
| ============LICENSE_END========================================================= |
| --> |
| |
| <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> |
| |
| <groupId>org.onap.dcaegen2.services</groupId> |
| <artifactId>pm-mapper</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| |
| <parent> |
| <groupId>org.onap.oparent</groupId> |
| <artifactId>oparent</artifactId> |
| <version>1.2.0</version> |
| </parent> |
| |
| <properties> |
| <!-- Dependency Versions --> |
| <lombok.version>1.18.4</lombok.version> |
| <sl4j.version>1.7.25</sl4j.version> |
| <logback.version>1.2.3</logback.version> |
| <reactor.version>3.2.3.RELEASE</reactor.version> |
| <undertow.version>2.0.16.Final</undertow.version> |
| <gson.version>2.8.5</gson.version> |
| <!-- Testing.Test Dependencies --> |
| <junit.version>5.3.2</junit.version> |
| <mockito.version>2.23.4</mockito.version> |
| <mockito-ju5-ext.version>2.23.4</mockito-ju5-ext.version> |
| <powermock.version>2.0.0</powermock.version> |
| <junit4.version>4.12</junit4.version> |
| <!-- Plugin Versions --> |
| <shade.plugin.version>3.2.0</shade.plugin.version> |
| <jacoco.version>0.8.2</jacoco.version> |
| <dockerfile.version>1.4.10</dockerfile.version> |
| <surefire.version>2.22.0</surefire.version> |
| <!-- Plugin Settings --> |
| <sonar.language>java</sonar.language> |
| <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> |
| <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> |
| <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths> |
| <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath> |
| <sonar.projectVersion>${project.version}</sonar.projectVersion> |
| <compiler.target.version>1.8</compiler.target.version> |
| <compiler.source.version>1.8</compiler.source.version> |
| <shade.main>org.onap.dcaegen2.services.pmmapper.App</shade.main> |
| <shade.transformer>org.apache.maven.plugins.shade.resource.ManifestResourceTransformer</shade.transformer> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| <version>${lombok.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.projectreactor</groupId> |
| <artifactId>reactor-core</artifactId> |
| <version>${reactor.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.undertow</groupId> |
| <artifactId>undertow-core</artifactId> |
| <version>${undertow.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>${sl4j.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <version>${logback.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>${gson.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-junit-jupiter</artifactId> |
| <version>${mockito-ju5-ext.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>${mockito.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-module-junit4</artifactId> |
| <version>${powermock.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.vintage</groupId> |
| <artifactId>junit-vintage-engine</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-api-mockito2</artifactId> |
| <version>${powermock.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.spotify</groupId> |
| <artifactId>dockerfile-maven-plugin</artifactId> |
| <version>${dockerfile.version}</version> |
| <configuration> |
| <repository>${docker.push.registry}/${project.artifactId}</repository> |
| <tag>${project.version}</tag> |
| <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile> |
| <buildArgs> |
| <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR> |
| </buildArgs> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${surefire.version}</version> |
| <configuration combine.self="override"/> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>${surefire.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>${shade.plugin.version}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <shadedClassifierName>jar-with-dependencies</shadedClassifierName> |
| <transformers> |
| <transformer implementation="${shade.transformer}"> |
| <mainClass>${shade.main}</mainClass> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>${maven.compiler.source}</source> |
| <target>${maven.compiler.target}</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>${jacoco.version}</version> |
| <executions> |
| <execution> |
| <id>jacoco-instrument</id> |
| <goals> |
| <goal>instrument</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>jacoco-restore-instrumented-classes</id> |
| <goals> |
| <goal>restore-instrumented-classes</goal> |
| </goals> |
| </execution> |
| <execution> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>report</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <excludes> |
| <exclude>**/*App.*</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |