From 31439b63b92b8124588a6262e1d9d0a89cdd46e9 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 31 Jul 2017 12:38:40 +0530 Subject: [PATCH] Make cli plugins target lib Helps to copy all cli plugins jar into plugins/target/lib, from here deployment project will take them. CLI-21 Change-Id: I52f0a37878f5cd1267f9cf5a1f326a71fb704e79 Signed-off-by: Kanagaraj Manickam k00365106 --- deployment/pom.xml | 4 ++- main/pom.xml | 5 ---- plugins/{common-service => msb}/pom.xml | 12 ++++++-- .../cli/cmd/cs/msb/OnapServiceCreateCommand.java | 0 .../cli/cmd/cs/msb/OnapServiceDeleteCommand.java | 0 .../cli/cmd/cs/msb/OnapServiceListCommand.java | 0 .../cli/cmd/cs/msb/OnapServiceShowCommand.java | 0 .../META-INF/services/org.onap.cli.fw.OnapCommand | 0 .../main/resources/microservice-create-schema.yaml | 0 .../main/resources/microservice-delete-schema.yaml | 0 .../main/resources/microservice-list-schema.yaml | 0 .../main/resources/microservice-show-schema.yaml | 0 .../src/test/resources/service-list-schema.yaml | 0 .../src/test/resources/user-create-schema.yaml | 0 plugins/pom.xml | 35 ++++++++++++++++++++-- pom.xml | 6 ++-- 16 files changed, 49 insertions(+), 13 deletions(-) rename plugins/{common-service => msb}/pom.xml (78%) rename plugins/{common-service => msb}/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceCreateCommand.java (100%) rename plugins/{common-service => msb}/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceDeleteCommand.java (100%) rename plugins/{common-service => msb}/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceListCommand.java (100%) rename plugins/{common-service => msb}/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceShowCommand.java (100%) rename plugins/{common-service => msb}/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand (100%) rename plugins/{common-service => msb}/src/main/resources/microservice-create-schema.yaml (100%) rename plugins/{common-service => msb}/src/main/resources/microservice-delete-schema.yaml (100%) rename plugins/{common-service => msb}/src/main/resources/microservice-list-schema.yaml (100%) rename plugins/{common-service => msb}/src/main/resources/microservice-show-schema.yaml (100%) rename plugins/{common-service => msb}/src/test/resources/service-list-schema.yaml (100%) rename plugins/{common-service => msb}/src/test/resources/user-create-schema.yaml (100%) diff --git a/deployment/pom.xml b/deployment/pom.xml index b6f32c4f..a3191a78 100644 --- a/deployment/pom.xml +++ b/deployment/pom.xml @@ -79,6 +79,8 @@ "${project.build.directory}/../../main/target/cli-main-${project.version}.jar") fileset(dir: "${project.build.directory}/../../main/target/lib/") + fileset(dir: + "${project.build.directory}/../../plugins/target/lib/") } ant.zip(destfile: @@ -94,7 +96,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.0.0 + 3.0.0 attach-artifacts diff --git a/main/pom.xml b/main/pom.xml index d1bc138c..451c55df 100644 --- a/main/pom.xml +++ b/main/pom.xml @@ -42,11 +42,6 @@ cli-framework ${project.parent.version} - - org.onap.cli - cli-plugin-common-service - ${project.parent.version} - commons-io commons-io diff --git a/plugins/common-service/pom.xml b/plugins/msb/pom.xml similarity index 78% rename from plugins/common-service/pom.xml rename to plugins/msb/pom.xml index 0ca644ed..18a76f87 100644 --- a/plugins/common-service/pom.xml +++ b/plugins/msb/pom.xml @@ -27,7 +27,15 @@ 1.0.0-SNAPSHOT - cli-plugin-common-service - cli/plugins/common-service + cli-plugins-msb + cli/plugins/msb jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + diff --git a/plugins/common-service/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceCreateCommand.java b/plugins/msb/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceCreateCommand.java similarity index 100% rename from plugins/common-service/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceCreateCommand.java rename to plugins/msb/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceCreateCommand.java diff --git a/plugins/common-service/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceDeleteCommand.java b/plugins/msb/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceDeleteCommand.java similarity index 100% rename from plugins/common-service/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceDeleteCommand.java rename to plugins/msb/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceDeleteCommand.java diff --git a/plugins/common-service/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceListCommand.java b/plugins/msb/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceListCommand.java similarity index 100% rename from plugins/common-service/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceListCommand.java rename to plugins/msb/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceListCommand.java diff --git a/plugins/common-service/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceShowCommand.java b/plugins/msb/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceShowCommand.java similarity index 100% rename from plugins/common-service/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceShowCommand.java rename to plugins/msb/src/main/java/org/onap/cli/cmd/cs/msb/OnapServiceShowCommand.java diff --git a/plugins/common-service/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand b/plugins/msb/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand similarity index 100% rename from plugins/common-service/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand rename to plugins/msb/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand diff --git a/plugins/common-service/src/main/resources/microservice-create-schema.yaml b/plugins/msb/src/main/resources/microservice-create-schema.yaml similarity index 100% rename from plugins/common-service/src/main/resources/microservice-create-schema.yaml rename to plugins/msb/src/main/resources/microservice-create-schema.yaml diff --git a/plugins/common-service/src/main/resources/microservice-delete-schema.yaml b/plugins/msb/src/main/resources/microservice-delete-schema.yaml similarity index 100% rename from plugins/common-service/src/main/resources/microservice-delete-schema.yaml rename to plugins/msb/src/main/resources/microservice-delete-schema.yaml diff --git a/plugins/common-service/src/main/resources/microservice-list-schema.yaml b/plugins/msb/src/main/resources/microservice-list-schema.yaml similarity index 100% rename from plugins/common-service/src/main/resources/microservice-list-schema.yaml rename to plugins/msb/src/main/resources/microservice-list-schema.yaml diff --git a/plugins/common-service/src/main/resources/microservice-show-schema.yaml b/plugins/msb/src/main/resources/microservice-show-schema.yaml similarity index 100% rename from plugins/common-service/src/main/resources/microservice-show-schema.yaml rename to plugins/msb/src/main/resources/microservice-show-schema.yaml diff --git a/plugins/common-service/src/test/resources/service-list-schema.yaml b/plugins/msb/src/test/resources/service-list-schema.yaml similarity index 100% rename from plugins/common-service/src/test/resources/service-list-schema.yaml rename to plugins/msb/src/test/resources/service-list-schema.yaml diff --git a/plugins/common-service/src/test/resources/user-create-schema.yaml b/plugins/msb/src/test/resources/user-create-schema.yaml similarity index 100% rename from plugins/common-service/src/test/resources/user-create-schema.yaml rename to plugins/msb/src/test/resources/user-create-schema.yaml diff --git a/plugins/pom.xml b/plugins/pom.xml index ecccc79e..93ac3b0f 100644 --- a/plugins/pom.xml +++ b/plugins/pom.xml @@ -40,10 +40,41 @@ org.onap.cli cli-framework - 1.0.0-SNAPSHOT + ${project.parent.version} - common-service + msb + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-artifact + package + + copy + + + + + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.packaging} + + + + ../../plugins/target/lib + + + + + + + diff --git a/pom.xml b/pom.xml index 162b0924..cc361731 100644 --- a/pom.xml +++ b/pom.xml @@ -16,13 +16,13 @@ --> 4.0.0 - + org.onap.oparent oparent - 1.0.0-SNAPSHOT + 1.0.0-SNAPSHOT - + org.onap.cli cli pom -- 2.16.6