From 6a6861d5a4c58c194b5cd81e9e1da164c83a393e Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Mon, 7 May 2018 15:28:37 -0700 Subject: [PATCH] Download DGs from main appc project Instead of using the extra copy of DGs that exist in the deployment project, we are now pulling them from the main appc project as part of the build. Change-Id: I5f7ddab8e9000dd626b5d26628d44dc6878ce524 Signed-off-by: Patrick Brady Issue-ID: APPC-887 --- installation/appc/src/main/scripts/installZips.sh | 6 +++- platform-logic/appc/pom.xml | 35 ----------------------- 2 files changed, 5 insertions(+), 36 deletions(-) diff --git a/installation/appc/src/main/scripts/installZips.sh b/installation/appc/src/main/scripts/installZips.sh index 8a93d8a..9296c3b 100644 --- a/installation/appc/src/main/scripts/installZips.sh +++ b/installation/appc/src/main/scripts/installZips.sh @@ -18,7 +18,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============LICENSE_END========================================================= -# ECOMP is a trademark and service mark of AT&T Intellectual Property. ### if [ -z "$SETTINGS_FILE" -a -z "$GLOBAL_SETTINGS_FILE" -a -s "$HOME"/.m2/settings.xml ] @@ -118,6 +117,11 @@ rm -f /tmp/platform-logic-installer*.zip mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.onap.appc.deployment:platform-logic-installer:${APPC_OAM_VERSION}:zip -DoutputDirectory=/tmp -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.ssl.insecure=true unzip -d ${targetDir} /tmp/platform-logic-installer*.zip +echo "Downloading dg-loader DGs from nexus" +mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.onap.appc:appc-dg-provider:${APPC_VERSION} -DoutputDirectory=/tmp +unzip -d ${targetDir}/svclogic/graphs/appc/json /tmp/appc-dg-provider*.jar json/** +mv ${targetDir}/svclogic/graphs/appc/json/json ${targetDir}/svclogic/graphs/appc/json/dg-loader-dgs + echo "Downloading dg-loader-provider jar from nexus" mvn -U ${mavenOpts} org.apache.maven.plugins:maven-dependency-plugin:2.9:copy -Dartifact=org.onap.appc.plugins:dg-loader-provider:${APPC_VERSION}:jar:jar-with-dependencies -DoutputDirectory=${targetDir}/data mv ${targetDir}/data/dg-loader-provider-*-jar-with-dependencies.jar ${targetDir}/data/dg-loader-provider-jar-with-dependencies.jar diff --git a/platform-logic/appc/pom.xml b/platform-logic/appc/pom.xml index 258c121..4dce7db 100644 --- a/platform-logic/appc/pom.xml +++ b/platform-logic/appc/pom.xml @@ -18,8 +18,6 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -ECOMP is a trademark and service mark of AT&T Intellectual Property. ============LICENSE_END============================================ --> - - - maven-resources-plugin - 2.6 - - - copy-dgloader-dgs - - copy-resources - - validate - - ../target/graphs/appc/json/dg-loader-dgs - - - src/main/json/dg-loader-dgs - - **/*.json - - true - - - src/main/resources - - dg_activate.txt - - true - - - - - - maven-resources-plugin -- 2.16.6