Fixes for sonar critical issues
[policy/engine.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index b8dd4c7..34d94b8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -2,6 +2,13 @@
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
 
+       <parent>
+               <groupId>org.onap.oparent</groupId>
+               <artifactId>oparent</artifactId>
+               <version>1.0.0-SNAPSHOT</version>
+               <relativePath/>
+       </parent>
+
        <groupId>org.onap.policy.engine</groupId>
        <artifactId>PolicyEngineSuite</artifactId>
        <version>1.1.0-SNAPSHOT</version>
        <description>The ONAP Policy Engine main pom</description>
 
        <properties>
-               <maven.compiler.source>1.8</maven.compiler.source>
-               <maven.compiler.target>1.8</maven.compiler.target>
-
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
                <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
                <project.source.version>1.8</project.source.version>
                <project.target.version>1.8</project.target.version>
                <project.encoding>UTF-8</project.encoding>
-               
+
                <sonar.language>java</sonar.language>
                <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
                <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
@@ -41,8 +45,6 @@
                <module>PolicyEngineUtils</module>
                <module>ONAP-XACML</module>
                <module>ONAP-REST</module>
-               <module>ONAP-ASDC</module>
-               <module>ONAP-ControlloopPolicy</module>
                <module>PolicyEngineAPI</module>
                <module>ONAP-PDP</module>
                <module>ONAP-PDP-REST</module>
                <module>packages</module>
        </modules>
 
-       <repositories>
-               <repository>
-                       <id>ecomp-snapshots</id>
-                       <name>ONAP Snapshot Repository</name>
-                       <url>${nexusproxy}/${snapshots.path}</url>
-               </repository>
-               <repository>
-                       <id>ecomp-releases</id>
-                       <name>ONAP Release Repository</name>
-                       <url>${nexusproxy}/${releases.path}/</url>
-               </repository>
-               <repository>
-                       <id>ecomp-staging</id>
-                       <name>ONAP Staging Repository</name>
-                       <url>${nexusproxy}/${staging.path}</url>
-               </repository>
-       </repositories>
-
        <distributionManagement>
                <repository>
                        <id>ecomp-releases</id>
                                <configuration>
                                        <nexusUrl>${nexusproxy}</nexusUrl>
                                        <stagingProfileId>176c31dfe190a</stagingProfileId>
-                                       <serverId>onap-staging</serverId>
+                                       <serverId>ecomp-staging</serverId>
                                </configuration>
                        </plugin>
                        <plugin>
                                <artifactId>maven-clean-plugin</artifactId>
                                <version>2.4.1</version>
                        </plugin>
-                       <!-- license plugin Run mvn clean before running from the command line 
-                               mvn license:update-file-header -->
-                       <plugin>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>license-maven-plugin</artifactId>
-                               <version>1.9</version>
-                               <configuration>
-                                       <extraExtensions>
-                                               <!-- Used to add or change the header style <fileTypeYouAreMapping> 
-                                                       fileTypeMappedInto </fileTypeYouAreMapping> -->
-                                               <drl>java</drl>
-                                               <ccf>properties</ccf>
-
-                                               <!-- Because the typical sql comment type confuses the update algorithm -->
-                                               <sql>java</sql>
-                                       </extraExtensions>
-                                       <licenseName>apache_v2</licenseName>
-
-                                       <inceptionYear>2017</inceptionYear>
-                                       <organizationName>AT&amp;T Intellectual Property. All rights
-                                               reserved.</organizationName>
-
-                                       <!-- Once you have established the tags and delimiter, they cannot be 
-                                               changed -->
-                                       <processStartTag>============LICENSE_START=======================================================</processStartTag>
-                                       <processEndTag>============LICENSE_END=========================================================</processEndTag>
-                                       <sectionDelimiter>================================================================================</sectionDelimiter>
-                                       <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
-                                       <canUpdateCopyright>true</canUpdateCopyright>
-                                       <canUpdateDescription>true</canUpdateDescription>
-                                       <canUpdateLicense>true</canUpdateLicense>
-                                       <emptyLineAfterHeader>true</emptyLineAfterHeader>
-                                       <roots>
-                                               <!-- Default is src, target/generated-sources, target/processed-sources -->
-
-                                               <!-- Everything except the files in the excludes section -->
-                                               <root>/</root>
-                                       </roots>
-                                       <excludes>
-                                               <!-- Files which are to be excluded. The pom.xml is excluded because 
-                                                       the start/end tags and the delimiters are in the body of the file. This confuses 
-                                                       the algorithm. So, this file must be manually updated with a license header. -->
-                                               <exclude>pom.xml</exclude>
-                                       </excludes>
-                               </configuration>
-                       </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                        <failOnMissingWebXml>false</failOnMissingWebXml>
                                </configuration>
                        </plugin>
-                       <!-- The Jetty plugin allows us to easily test the development build by 
+                       <!-- The Jetty plugin allows us to easily test the development build by
                                running jetty:run on the command line. -->
 
                        <plugin>
                          </dependencies>
                        </plugin>
                </plugins>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.eclipse.m2e</groupId>
+                    <artifactId>lifecycle-mapping</artifactId>
+                    <version>1.0.0</version>
+                    <configuration>
+                        <lifecycleMappingMetadata>
+                            <pluginExecutions>
+                                <pluginExecution>
+                                    <pluginExecutionFilter>
+                                        <groupId>org.apache.maven.plugins</groupId>
+                                        <artifactId>maven-checkstyle-plugin</artifactId>
+                                        <versionRange>2.17,)</versionRange>
+                                        <goals>
+                                            <goal>check</goal>
+                                        </goals>
+                                    </pluginExecutionFilter>
+                                    <action>
+                                        <ignore />
+                                    </action>
+                                </pluginExecution>
+                            </pluginExecutions>
+                        </lifecycleMappingMetadata>
+                    </configuration>
+                </plugin>
+            </plugins>
+        </pluginManagement>
        </build>
 </project>