[POLICY-152] engine integration with oparent 11/6611/1
authorGuo Ruijing <ruijing.guo@intel.com>
Thu, 3 Aug 2017 11:44:10 +0000 (11:44 +0000)
committerGuo Ruijing <ruijing.guo@intel.com>
Thu, 3 Aug 2017 11:50:20 +0000 (11:50 +0000)
Change-Id: Ia03582b13052d1f0dca6c7ff2f7918679bbd43de
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
README.md
pom.xml

index 3e8ca78..a31b952 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1 +1,5 @@
-This source repository contains the ONAP Policy Engine code. The settings file needs to support the standard Maven repositories (e.g. central = http://repo1.maven.org/maven2/), and any proxy settings needed in your environment. To build it using Maven 3, run 'mvn clean install'.
+This source repository contains the ONAP Policy Engine code. To build it:
+1. using Maven 3
+2. git clone http://gerrit.onap.org/r/oparent and copy
+oparent/settings.xml to ~/.m2
+3. mvn clean install
diff --git a/pom.xml b/pom.xml
index fb6977e..17faafc 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>
@@ -11,9 +18,6 @@
        <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>
                <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>