[POLICY-153]policy-docker integration with oparent 13/6613/1
authorGuo Ruijing <ruijing.guo@intel.com>
Thu, 3 Aug 2017 12:02:57 +0000 (12:02 +0000)
committerGuo Ruijing <ruijing.guo@intel.com>
Thu, 3 Aug 2017 12:05:11 +0000 (12:05 +0000)
Change-Id: Ic06c8af07dda9151450aa863bc033400ff5971b3
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
pom.xml
vagrant/setup_policy.sh

diff --git a/pom.xml b/pom.xml
index e37a4cb..a89462d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
 
        <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.docker</groupId>
        <artifactId>docker</artifactId>
        <name>Policy Engine - Docker build</name>
        <description>ONAP Policy Docker Build</description>
 
-       <properties>
-               <nexusproxy>https://nexus.onap.org</nexusproxy>
-               <releases.path>content/repositories/releases/</releases.path>
-               <snapshots.path>content/repositories/snapshots/</snapshots.path>
-               <staging.path>content/repositories/staging/</staging.path>
-       </properties>
-
-       <repositories>
-               <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>
-               <repository>
-                       <id>ecomp-snapshot</id>
-                       <name>ONAP Snapshot Repository</name>
-                       <url>${nexusproxy}/${snapshots.path}</url>
-               </repository>
-       </repositories>
-
-       <distributionManagement>
-               <repository>
-                       <id>ecomp-releases</id>
-                       <name>ONAP Release Repository</name>
-                       <url>${nexusproxy}/${releases.path}</url>
-               </repository>
-               <snapshotRepository>
-                       <id>ecomp-snapshots</id>
-                       <name>ONAP Snapshot Repository</name>
-                       <url>${nexusproxy}/${snapshots.path}</url>
-               </snapshotRepository>
-       </distributionManagement>
-
        <build>
                <plugins>
                        <plugin>
index 4c43f45..c2a43ce 100755 (executable)
@@ -6,6 +6,9 @@ sudo apt-get update -y
 sudo apt-get install -y maven openjdk-8-jdk npm python-pip docker.io
 sudo pip install docker-compose
 
+git clone http://gerrit.onap.org/r/oparent
+cp oparent/settings.xml $HOME/.m2
+
 for comp in common drools-pdp drools-applications engine
 do
     cd $HOME