| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ ============LICENSE_START======================================================= |
| ~ PNF-REGISTRATION-HANDLER |
| ~ ================================================================================ |
| ~ Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved. |
| ~ ================================================================================ |
| ~ 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. |
| ~ ============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> |
| <parent> |
| <groupId>org.onap.oparent</groupId> |
| <artifactId>oparent</artifactId> |
| <version>0.1.1</version> |
| <relativePath/> |
| </parent> |
| <groupId>org.onap.dcaegen2.services</groupId> |
| <artifactId>prh</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| <name>dcaegen2-services-prh</name> |
| <description>pnf-registration-handler</description> |
| <packaging>pom</packaging> |
| |
| <licenses> |
| <license> |
| <name>The Apache Software License, Version 2.0</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| </license> |
| </licenses> |
| |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| |
| <!-- JAVA VERSION--> |
| <java.version>8</java.version> |
| <compiler.plugin.version>3.7.0</compiler.plugin.version> |
| <tomcat.version>8.5.28</tomcat.version> |
| <docker.maven.version>1.0.0</docker.maven.version> |
| <resource.maven.plugin.version>3.1.0</resource.maven.plugin.version> |
| <!-- DEVELOPMENT SETTINGS --> |
| <immutable.version>2.5.6</immutable.version> |
| |
| <!-- LOGGING SETTINGS --> |
| <slf4j.version>1.7.25</slf4j.version> |
| <logback.version>1.2.3</logback.version> |
| |
| <!--TEST SETTINGS --> |
| <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile> |
| <junit.version>4.12</junit.version> |
| <junit.jupiter.version>5.1.0</junit.jupiter.version> |
| <junit.vintage.version>5.1.0</junit.vintage.version> |
| <junit.platform.version>1.1.0</junit.platform.version> |
| |
| <!--PLUGIN SETTINGS --> |
| <nexusproxy>https://nexus.onap.org</nexusproxy> |
| <snapshots.path>content/repositories/snapshots/</snapshots.path> |
| <releases.path>content/repositories/releases/</releases.path> |
| <site.path> |
| content/sites/site/org/onap/dcaegen2/services/prh/${project.artifactId}/${project.version} |
| </site.path> |
| </properties> |
| |
| <pluginRepositories> |
| <!-- Black Duck plugin dependencies --> |
| <pluginRepository> |
| <id>JCenter</id> |
| <name>JCenter Repository</name> |
| <url>http://jcenter.bintray.com</url> |
| </pluginRepository> |
| <pluginRepository> |
| <id>Restlet</id> |
| <name>Restlet Repository</name> |
| <url>http://maven.restlet.com</url> |
| </pluginRepository> |
| </pluginRepositories> |
| |
| <repositories> |
| <repository> |
| <id>external-repository</id> |
| <url>https://oss.sonatype.org/content/repositories</url> |
| </repository> |
| </repositories> |
| |
| <build> |
| |
| <extensions> |
| <extension> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-webdav-jackrabbit</artifactId> |
| <version>3.0.0</version> |
| </extension> |
| </extensions> |
| |
| <pluginManagement> |
| <plugins> |
| |
| <!-- COMPILER PLUGIN --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${compiler.plugin.version}</version> |
| <configuration> |
| <source>${java.version}</source> |
| <target>${java.version}</target> |
| <showWarnings>true</showWarnings> |
| <showDeprecation>true</showDeprecation> |
| </configuration> |
| </plugin> |
| |
| <!-- MAVEN SOURCE PLUGIN --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>3.0.1</version> |
| <configuration> |
| <excludeResources>true</excludeResources> |
| </configuration> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- MAVEN JAVADOC PLUGIN --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>3.0.0</version> |
| <configuration> |
| <!-- minimize console output messages --> |
| <quiet>true</quiet> |
| <verbose>false</verbose> |
| <useStandardDocletOptions>false</useStandardDocletOptions> |
| </configuration> |
| <executions> |
| <execution> |
| <id>aggregate</id> |
| <phase>site</phase> |
| <goals> |
| <goal>aggregate</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>attach-javadoc</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- MAVEN BUNDLE PLUGIN --> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>3.5.0</version> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency> |
| <Embed-Transitive>true</Embed-Transitive> |
| <Embed-Directory>lib</Embed-Directory> |
| </instructions> |
| </configuration> |
| <executions> |
| <execution> |
| <id>Bundling PRH Jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>bundle</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- maven-surefire-plugin which is used during the test phase of build lifecycle --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.19.1</version> |
| <configuration> |
| <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC |
| -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError |
| </argLine> |
| <redirectTestOutputToFile>${surefire.redirectTestOutputToFile} |
| </redirectTestOutputToFile> |
| <parallel>methods</parallel> |
| <threadCount>8</threadCount> |
| <forkCount>8</forkCount> |
| <reuseForks>true</reuseForks> |
| <reportFormat>xml</reportFormat> |
| <trimStackTrace>false</trimStackTrace> |
| <systemPropertyVariables> |
| <java.io.tmpdir>${project.build.directory}</java.io.tmpdir> |
| <logback.configurationFile> |
| ${basedir}/src/test/resources/logback-test.xml |
| </logback.configurationFile> |
| <HADOOP_HOME>${project.build.directory}</HADOOP_HOME> |
| </systemPropertyVariables> |
| <includes> |
| <include>**/*Test.java</include> |
| </includes> |
| <excludes> |
| <exclude>**/*IT.java</exclude> |
| </excludes> |
| <!-- Sets the VM argument line used when unit tests are run. --> |
| <argLine>${argLine}</argLine> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.junit.platform</groupId> |
| <artifactId>junit-platform-surefire-provider</artifactId> |
| <version>${junit.platform.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| |
| <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>findbugs-maven-plugin</artifactId> |
| <version>${findbugs.plugin.version}</version> |
| <configuration> |
| <effort>Max</effort> |
| <threshold>Low</threshold> |
| <xmlOutput>true</xmlOutput> |
| <!-- BUILD FAIL ON FINDBUGS ERRORS --> |
| <failOnError>true</failOnError> |
| <excludeFilterFile>${project.basedir}/findbugs-exclude.xml</excludeFilterFile> |
| <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory> |
| <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs |
| </findbugsXmlOutputDirectory> |
| </configuration> |
| <executions> |
| <execution> |
| <id>analyze-compile</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>3.0.2</version> |
| <configuration> |
| <archive> |
| <manifest> |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| </manifest> |
| <manifestEntries> |
| <Implementation-Build-Version>${project.version}</Implementation-Build-Version> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>3.6</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jxr-plugin</artifactId> |
| <version>2.5</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-project-info-reports-plugin</artifactId> |
| <version>2.9</version> |
| <configuration> |
| <dependencyDetailsEnabled>false</dependencyDetailsEnabled> |
| <dependencyLocationsEnabled>false</dependencyLocationsEnabled> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-report-plugin</artifactId> |
| <version>2.21.0</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>com.spotify</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <version>${docker.maven.version}</version> |
| <configuration> |
| <skipDockerBuild>true</skipDockerBuild> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>${resource.maven.plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/Immutable*</exclude> |
| <exclude>**/GsonAdapters*</exclude> |
| <exclude>**/*ForUnitTest*</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <id>default-prepare-agent</id> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>report</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>check</id> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| <configuration> |
| <excludes> |
| <exclude>**/Immutable*</exclude> |
| <exclude>**/GsonAdapters*</exclude> |
| <exclude>**/*ForUnitTest*</exclude> |
| <exclude>**/AAIConsumer*</exclude> |
| </excludes> |
| <rules> |
| <rule> |
| <element>CLASS</element> |
| <limits> |
| <limit> |
| <value>COVEREDRATIO</value> |
| <!--<minimum>0.70</minimum>--> |
| </limit> |
| <limit> |
| <counter>BRANCH</counter> |
| <value>COVEREDRATIO</value> |
| <!--<minimum>0.70</minimum>--> |
| </limit> |
| </limits> |
| </rule> |
| </rules> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <reporting> |
| <plugins> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jxr-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-project-info-reports-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-report-plugin</artifactId> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>2.10.4</version> |
| <configuration> |
| <failOnError>false</failOnError> |
| <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| <docletArtifact> |
| <groupId>org.umlgraph</groupId> |
| <artifactId>umlgraph</artifactId> |
| <version>5.6</version> |
| </docletArtifact> |
| <additionalparam>-views</additionalparam> |
| <useStandardDocletOptions>true</useStandardDocletOptions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| <dependencyManagement> |
| <dependencies> |
| |
| <!-- DEVELOPMENT TOOLS DEPENDENCIES --> |
| <dependency> |
| <groupId>org.immutables</groupId> |
| <artifactId>value</artifactId> |
| <version>${immutable.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.immutables</groupId> |
| <artifactId>gson</artifactId> |
| <version>${immutable.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.projectreactor</groupId> |
| <artifactId>reactor-bom</artifactId> |
| <version>Bismuth-RELEASE</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.spotify</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <version>${docker.maven.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>${resource.maven.plugin.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcprov-jdk15on</artifactId> |
| <version>1.59</version> |
| </dependency> |
| <dependency> |
| <groupId>org.bouncycastle</groupId> |
| <artifactId>bcpkix-jdk15on</artifactId> |
| <version>1.59</version> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.plexus</groupId> |
| <artifactId>plexus-utils</artifactId> |
| <version>3.1.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <version>4.5.4</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>3.6</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-beans</artifactId> |
| <version>5.0.5.RELEASE</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context</artifactId> |
| <version>5.0.5.RELEASE</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tomcat.embed</groupId> |
| <artifactId>tomcat-embed-core</artifactId> |
| <version>${tomcat.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tomcat.embed</groupId> |
| <artifactId>tomcat-embed-el</artifactId> |
| <version>${tomcat.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tomcat.embed</groupId> |
| <artifactId>tomcat-embed-websocket</artifactId> |
| <version>${tomcat.version}</version> |
| </dependency> |
| |
| <!-- LOGGING dependencies> --> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <version>${logback.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>jul-to-slf4j</artifactId> |
| <version>1.7.25</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>log4j-over-slf4j</artifactId> |
| <version>1.7.25</version> |
| </dependency> |
| |
| <!-- TESTING TOOLS DEPENDENCIES --> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-api</artifactId> |
| <version>${junit.jupiter.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <version>${junit.jupiter.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.vintage</groupId> |
| <artifactId>junit-vintage-engine</artifactId> |
| <version>${junit.vintage.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-test</artifactId> |
| <version>5.0.4.RELEASE</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>2.16.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| <version>6.14.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish.jersey.connectors</groupId> |
| <artifactId>jersey-apache-connector</artifactId> |
| <version>2.25.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <version>2.0.1.RELEASE</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| <dependency> |
| <groupId>io.springfox</groupId> |
| <artifactId>springfox-swagger2</artifactId> |
| <version>2.8.0</version> |
| </dependency> |
| <dependency> |
| <groupId>io.springfox</groupId> |
| <artifactId>springfox-swagger-ui</artifactId> |
| <version>2.8.0</version> |
| </dependency> |
| |
| <!-- ONLY REQUIRED TO RUN TESTS IN AN IDE THAT BUNDLES AN OLDER VERSION --> |
| <dependency> |
| <groupId>org.junit.platform</groupId> |
| <artifactId>junit-platform-launcher</artifactId> |
| <version>${junit.platform.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| </dependencyManagement> |
| |
| <modules> |
| <module>prh-app-server</module> |
| <module>prh-aai-client</module> |
| <module>prh-dmaap-client</module> |
| <module>prh-commons</module> |
| </modules> |
| </project> |
| |