| <?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.1.1-SNAPSHOT</version> |
| |
| <parent> |
| <groupId>org.onap.oparent</groupId> |
| <artifactId>oparent</artifactId> |
| <version>2.0.0</version> |
| </parent> |
| |
| <name>dcaegen2-services-pm-mapper</name> |
| <description>Maps PM measurement data from XML to VES</description> |
| <packaging>jar</packaging> |
| |
| <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> |
| <freemarker.version>2.3.28</freemarker.version> |
| <commons.io.version>2.6</commons.io.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> |
| <mockserver.version>3.10.8</mockserver.version> |
| <junit4.version>4.12</junit4.version> |
| <jsonschema.version>1.3.0</jsonschema.version> |
| <xerces.version>2.11.0</xerces.version> |
| <reactor.test>3.1.0.RELEASE</reactor.test> |
| <!-- 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 --> |
| <image-name>${docker.push.registry}/onap/${project.groupId}.${project.artifactId}</image-name> |
| <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| <timestamp>${maven.build.timestamp}</timestamp> |
| <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> |
| <onap.logging.version>1.2.2</onap.logging.version> |
| </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>org.onap.logging-analytics</groupId> |
| <artifactId>logging-slf4j</artifactId> |
| <version>${onap.logging.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <version>2.5</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>${gson.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.freemarker</groupId> |
| <artifactId>freemarker</artifactId> |
| <version>${freemarker.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <version>${commons.io.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> |
| <dependency> |
| <groupId>org.mock-server</groupId> |
| <artifactId>mockserver-netty</artifactId> |
| <version>${mockserver.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mock-server</groupId> |
| <artifactId>mockserver-client-java</artifactId> |
| <version>${mockserver.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-params</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.projectreactor</groupId> |
| <artifactId>reactor-test</artifactId> |
| <version>${reactor.test}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.everit.json</groupId> |
| <artifactId>org.everit.json.schema</artifactId> |
| <version>${jsonschema.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>xerces</groupId> |
| <artifactId>xercesImpl</artifactId> |
| <version>${xerces.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>${image-name}</repository> |
| <dockerfile>${project.build.outputDirectory}/Dockerfile</dockerfile> |
| <buildArgs> |
| <JAR>${project.build.finalName}-jar-with-dependencies.jar</JAR> |
| </buildArgs> |
| </configuration> |
| <executions> |
| <execution> |
| <id>tag-version</id> |
| <phase>none</phase> |
| <goals> |
| <goal>tag</goal> |
| </goals> |
| <configuration> |
| <tag>${project.version}-${timestamp}</tag> |
| </configuration> |
| </execution> |
| <execution> |
| <id>push-latest</id> |
| <phase>none</phase> |
| <goals> |
| <goal>push</goal> |
| </goals> |
| <configuration> |
| <tag>latest</tag> |
| </configuration> |
| </execution> |
| <execution> |
| <id>push-version</id> |
| <phase>none</phase> |
| <goals> |
| <goal>push</goal> |
| </goals> |
| <configuration> |
| <tag>${project.version}-${timestamp}</tag> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${surefire.version}</version> |
| <configuration combine.self="override"> |
| <useSystemClassLoader>false</useSystemClassLoader> |
| </configuration> |
| </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> |
| <configuration> |
| <excludes> |
| <exclude>*</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>report</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |