[POLICY-151] drools-pdp integration with oparent 09/6609/1
authorGuo Ruijing <ruijing.guo@intel.com>
Thu, 3 Aug 2017 11:32:09 +0000 (11:32 +0000)
committerGuo Ruijing <ruijing.guo@intel.com>
Thu, 3 Aug 2017 11:32:45 +0000 (11:32 +0000)
Change-Id: Id419034816ea047276484e20c5e211a3fba5ec7a
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
README.md
pom.xml

index 8eae27b..1afeaad 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
-This source repository contains the ONAP Policy DroolsPDP code. The settings file only 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, first build 'policy-common-modules' (which contains dependencies), and then run: mvn clean install
+This source repository contains the ONAP Policy DroolsPDP 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 6b6b472..f5a35c6 100644 (file)
--- a/pom.xml
+++ b/pom.xml
        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.drools-pdp</groupId>
        <artifactId>drools-pdp</artifactId>
        <version>1.1.0-SNAPSHOT</version>
@@ -31,9 +38,6 @@
        <description>The ONAP Policy Engine drools-based PDP Project</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>
                <project.source.version>1.8</project.source.version>
                <project.target.version>1.8</project.target.version>
                <common-modules.version>1.1.0-SNAPSHOT</common-modules.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>