[POLICY-150] integration with oparent 93/6593/1
authorGuo Ruijing <ruijing.guo@intel.com>
Thu, 3 Aug 2017 10:32:01 +0000 (10:32 +0000)
committerGuo Ruijing <ruijing.guo@intel.com>
Thu, 3 Aug 2017 10:35:20 +0000 (10:35 +0000)
Change-Id: I072b7dadb370f7065ae4bf39192fc73bbbb9682b
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
README.md
pom.xml

index fdbfbb6..28c6649 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
-This source repository contains ONAP Policy application 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, run: mvn clean install
+This source repository contains ONAP Policy application 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
 
 The Demo template rule is located in template.demo sub-project. Use that project to protoype and test the .drl demo rule. When finished update the archetype-closedloop-demo-rules project with the .drl. Be sure to remove the Setup rule and comment out any simulation/test code.
 
diff --git a/pom.xml b/pom.xml
index b32da77..5d5d5d6 100644 (file)
--- a/pom.xml
+++ b/pom.xml
        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>1.0.0-SNAPSHOT</version>
+               <relativePath/>
+       </parent>
 
        <groupId>org.onap.policy.drools-applications</groupId>
        <artifactId>drools-pdp-apps</artifactId>
                <staging.path>content/repositories/staging/</staging.path>
        </properties>
 
-       <repositories>
-               <repository>
-                       <id>ecomp-releases</id>
-                       <name>OpenECOMP Release Repository</name>
-                       <url>${nexusproxy}/${releases.path}</url>
-               </repository>
-               <repository>
-                       <id>ecomp-staging</id>
-                       <name>OpenECOMP Staging Repository</name>
-                       <url>${nexusproxy}/${staging.path}</url>
-               </repository>
-               <repository>
-                       <id>ecomp-snapshots</id>
-                       <name>OpenECOMP Snapshot Repository</name>
-                       <url>${nexusproxy}/${snapshots.path}</url>
-               </repository>
-       </repositories>
-
        <build>
                <plugins>
                        <plugin>