From 2a78a3757795bbbfb6ac875dc51ec3b4eb7a5364 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Mon, 21 Aug 2017 14:03:14 -0700 Subject: Refactor oparent for independent versioning Change-Id: I543f394b360b6926986f33b48bef4b3355363beb Issue-id: INT-103 Signed-off-by: Gary Wu --- checkstyle/pom.xml | 2 +- .../src/main/resources/apache-license-2.regexp.txt | 15 - checkstyle/src/main/resources/check-license.xml | 19 - .../onap-checkstyle/apache-license-2.regexp.txt | 15 + .../resources/onap-checkstyle/check-license.xml | 19 + .../resources/onap-checkstyle/onap-java-style.xml | 220 +++++++++ checkstyle/src/main/resources/onap-java-style.xml | 220 --------- license/pom.xml | 2 +- oparent/pom.xml | 493 ++++++++++++++++++++ pom.xml | 504 ++------------------- version/pom.xml | 41 -- 11 files changed, 791 insertions(+), 759 deletions(-) delete mode 100644 checkstyle/src/main/resources/apache-license-2.regexp.txt delete mode 100644 checkstyle/src/main/resources/check-license.xml create mode 100644 checkstyle/src/main/resources/onap-checkstyle/apache-license-2.regexp.txt create mode 100644 checkstyle/src/main/resources/onap-checkstyle/check-license.xml create mode 100644 checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml delete mode 100644 checkstyle/src/main/resources/onap-java-style.xml create mode 100644 oparent/pom.xml delete mode 100644 version/pom.xml diff --git a/checkstyle/pom.xml b/checkstyle/pom.xml index 00f76d6..8dd9c61 100644 --- a/checkstyle/pom.xml +++ b/checkstyle/pom.xml @@ -20,7 +20,7 @@ org.onap.oparent version 1.0.0-SNAPSHOT - ../version + .. checkstyle oparent/checkstyle diff --git a/checkstyle/src/main/resources/apache-license-2.regexp.txt b/checkstyle/src/main/resources/apache-license-2.regexp.txt deleted file mode 100644 index 5b69f28..0000000 --- a/checkstyle/src/main/resources/apache-license-2.regexp.txt +++ /dev/null @@ -1,15 +0,0 @@ -^/[*]+$ -^ \* Copyright .*$ -^ \*( )?$ -^ \* Licensed under the Apache License, Version 2.0 \(the "License"\);$ -^ \* you may not use this file except in compliance with the License.$ -^ \* You may obtain a copy of the License at$ -^ \*( )?$ -^ \*( )*http://www.apache.org/licenses/LICENSE-2.0$ -^ \*( )?$ -^ \* Unless required by applicable law or agreed to in writing, software -^ \* 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. -^ [*]+/$ diff --git a/checkstyle/src/main/resources/check-license.xml b/checkstyle/src/main/resources/check-license.xml deleted file mode 100644 index 2a0acd0..0000000 --- a/checkstyle/src/main/resources/check-license.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - diff --git a/checkstyle/src/main/resources/onap-checkstyle/apache-license-2.regexp.txt b/checkstyle/src/main/resources/onap-checkstyle/apache-license-2.regexp.txt new file mode 100644 index 0000000..5b69f28 --- /dev/null +++ b/checkstyle/src/main/resources/onap-checkstyle/apache-license-2.regexp.txt @@ -0,0 +1,15 @@ +^/[*]+$ +^ \* Copyright .*$ +^ \*( )?$ +^ \* Licensed under the Apache License, Version 2.0 \(the "License"\);$ +^ \* you may not use this file except in compliance with the License.$ +^ \* You may obtain a copy of the License at$ +^ \*( )?$ +^ \*( )*http://www.apache.org/licenses/LICENSE-2.0$ +^ \*( )?$ +^ \* Unless required by applicable law or agreed to in writing, software +^ \* 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. +^ [*]+/$ diff --git a/checkstyle/src/main/resources/onap-checkstyle/check-license.xml b/checkstyle/src/main/resources/onap-checkstyle/check-license.xml new file mode 100644 index 0000000..2a0acd0 --- /dev/null +++ b/checkstyle/src/main/resources/onap-checkstyle/check-license.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + diff --git a/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml new file mode 100644 index 0000000..32439e2 --- /dev/null +++ b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/checkstyle/src/main/resources/onap-java-style.xml b/checkstyle/src/main/resources/onap-java-style.xml deleted file mode 100644 index 32439e2..0000000 --- a/checkstyle/src/main/resources/onap-java-style.xml +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/license/pom.xml b/license/pom.xml index 414b29e..50b2c5f 100644 --- a/license/pom.xml +++ b/license/pom.xml @@ -20,7 +20,7 @@ org.onap.oparent version 1.0.0-SNAPSHOT - ../version + .. onap-license oparent/license diff --git a/oparent/pom.xml b/oparent/pom.xml new file mode 100644 index 0000000..9cde98f --- /dev/null +++ b/oparent/pom.xml @@ -0,0 +1,493 @@ + + + + 4.0.0 + + org.onap.oparent + version + 1.0.0-SNAPSHOT + .. + + oparent + oparent/oparent + pom + + scm:git:ssh://git.onap.org:29418/oparent.git + scm:git:ssh://git.onap.org:29418/oparent.git + HEAD + https://wiki.onap.org/display/DW/Integration+Project + + + 0.7.7.201606060606 + 3.2 + jacoco + + target/code-coverage/jacoco-ut.exec + target/code-coverage/jacoco-it.exec + + **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + + ${basedir}/src/main/resources/swagger.properties + + + ${basedir}/src/main/resources/swagger.json + + + + + generate-json + + + ${swagger-properties} + + + swagger-sdk.generate-json + + + + + + org.codehaus.mojo + properties-maven-plugin + 1.0.0 + + + initialize + + read-project-properties + + + + ${basedir}/src/main/resources/swagger.properties + + + + + + + com.github.kongchen + swagger-maven-plugin + 3.1.4 + + + + ${api-rest-package} + http,https + ${api-host-ip}:${api-host-port} + ${api-base-path} + + ${api-title} + ${api-version} + ${api-description} + + ${api-license} + + + ${basedir}/src/main/resources + + + + + + compile + + generate + + + + + + org.apache.maven.plugins + maven-install-plugin + 2.3.1 + + + install-file-id + install + + install-file + + + ${basedir}/src/main/resources/swagger.json + ${project.groupId} + ${project.artifactId}-swagger-schema + ${project.version} + json + + + + + + + + + generate-sdk + + + ${swagger-json} + + + swagger-sdk.generate-java-sdk + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.8 + + + initialize + ant-create-script + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + run + + + + + + ant-contrib + ant-contrib + 1.0b3 + + + ant + ant + + + + + + + io.swagger + swagger-codegen-maven-plugin + 2.2.1 + + + + generate + + + ${basedir}/src/main/resources/swagger.json + ${project.build.directory}/generated-sources + java + + joda + + jersey2 + ${project.groupId} + ${project.artifactId}-java-sdk + ${project.version} + ${project.groupId}.${project.artifactId}.client.model + ${project.groupId}.${project.artifactId}.client.api + ${project.groupId}.${project.artifactId}.client.invoker + + + + + + exec-maven-plugin + org.codehaus.mojo + 1.5.0 + + + swagger-generate-sources + generate-sources + + exec + + + ${project.build.directory}${file.separator}${swagger.sdk.script.file} + + + + + + org.apache.maven.plugins + maven-clean-plugin + 3.0.0 + + + clean-generated-files + generate-sources + + clean + + + + + ${project.build.directory}/generated-sources + + + + + + + + + + + org.onap.msb.swagger-sdk + swagger-sdk + 1.0.0-SNAPSHOT + + + + + + + + + maven-checkstyle-plugin + 2.17 + + + org.onap.oparent + checkstyle + 1.0.0-SNAPSHOT + + + + + check-license + + check + + process-sources + + onap-checkstyle/check-license.xml + onap-checkstyle/apache-license-2.regexp.txt + false + true + false + ${project.build.sourceDirectory} + + + false + true + + + + check-style + + check + + process-sources + + + onap-checkstyle/onap-java-style.xml + + ${project.build.sourceDirectory}/src/main/java + true + true + true + + + false + true + + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + + + + + + pre-unit-test + + prepare-agent + + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + surefireArgLine + + + + + post-unit-test + test + + report + + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + ${project.reporting.outputDirectory}/jacoco-ut + + + + pre-integration-test + pre-integration-test + + prepare-agent + + + + ${project.build.directory}/code-coverage/jacoco-it.exec + + failsafeArgLine + + + + + post-integration-test + post-integration-test + + report + + + + ${project.build.directory}/code-coverage/jacoco-it.exec + + ${project.reporting.outputDirectory}/jacoco-it + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + + ${surefireArgLine} + + + **/IT*.java + + + + + org.apache.maven.plugins + maven-failsafe-plugin + 2.19.1 + + + + integration-tests + + integration-test + verify + + + + ${failsafeArgLine} + + + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.3.0.603 + + + + + + maven-checkstyle-plugin + + + org.codehaus.mojo + build-helper-maven-plugin + 1.12 + + + + org.jacoco + jacoco-maven-plugin + + + org.apache.maven.plugins + maven-surefire-plugin + + + org.apache.maven.plugins + maven-failsafe-plugin + + + + diff --git a/pom.xml b/pom.xml index e6f1280..4165b16 100644 --- a/pom.xml +++ b/pom.xml @@ -16,490 +16,70 @@ --> 4.0.0 - - org.onap.oparent - version - 1.0.0-SNAPSHOT - version - oparent - oparent + org.onap.oparent + version + 1.0.0-SNAPSHOT pom - - scm:git:ssh://git.onap.org:29418/oparent.git - scm:git:ssh://git.onap.org:29418/oparent.git - HEAD - https://wiki.onap.org/display/DW/Integration+Project - - version checkstyle license + oparent - - 0.7.7.201606060606 - 3.2 - jacoco - - target/code-coverage/jacoco-ut.exec - target/code-coverage/jacoco-it.exec - - **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** - - ${basedir}/src/main/resources/swagger.properties - - ${basedir}/src/main/resources/swagger.json + + 1.8 + 1.8 + UTF-8 + UTF-8 + https://nexus.onap.org - - - generate-json - - - ${swagger-properties} - - - swagger-sdk.generate-json - - - - - - org.codehaus.mojo - properties-maven-plugin - 1.0.0 - - - initialize - - read-project-properties - - - - ${basedir}/src/main/resources/swagger.properties - - - - - - - com.github.kongchen - swagger-maven-plugin - 3.1.4 - - - - ${api-rest-package} - http,https - ${api-host-ip}:${api-host-port} - ${api-base-path} - - ${api-title} - ${api-version} - ${api-description} - - ${api-license} - - - ${basedir}/src/main/resources - - - - - - compile - - generate - - - - - - org.apache.maven.plugins - maven-install-plugin - 2.3.1 - - - install-file-id - install - - install-file - - - ${basedir}/src/main/resources/swagger.json - ${project.groupId} - ${project.artifactId}-swagger-schema - ${project.version} - json - - - - - - - - - generate-sdk - - - ${swagger-json} - - - swagger-sdk.generate-java-sdk - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.8 - - - initialize - ant-create-script - - true - + + + ecomp-releases + ${onap.nexus.url}/content/repositories/releases + + + ecomp-snapshots + ${onap.nexus.url}/content/repositories/snapshots + + - - - - - - - - - - - - - - - - - - - - - - - - - run - - - - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - - - io.swagger - swagger-codegen-maven-plugin - 2.2.1 - - - - generate - - - ${basedir}/src/main/resources/swagger.json - ${project.build.directory}/generated-sources - java - - joda - - jersey2 - ${project.groupId} - ${project.artifactId}-java-sdk - ${project.version} - ${project.groupId}.${project.artifactId}.client.model - ${project.groupId}.${project.artifactId}.client.api - ${project.groupId}.${project.artifactId}.client.invoker - - - - - - exec-maven-plugin - org.codehaus.mojo - 1.5.0 - - - swagger-generate-sources - generate-sources - - exec - - - ${project.build.directory}${file.separator}${swagger.sdk.script.file} - - - - - - org.apache.maven.plugins - maven-clean-plugin - 3.0.0 - - - clean-generated-files - generate-sources - - clean - - - - - ${project.build.directory}/generated-sources - - - - - - - - - - - org.onap.msb.swagger-sdk - swagger-sdk - 1.0.0-SNAPSHOT - - - - - maven-checkstyle-plugin - 2.17 - - - org.onap.oparent - checkstyle - 1.0.0-SNAPSHOT - - - org.onap.oparent - onap-license - 1.0.0-SNAPSHOT - - - - - onap-java-style.xml - - ${project.build.sourceDirectory}/src/main/java - true - true - true - - - false - true - - - - check-license - - check - - process-sources - - check-license.xml - apache-license-2.regexp.txt - false - true - false - ${project.build.sourceDirectory} - - - false - true - - - - check-style - - check - - process-sources - - - - - org.jacoco - jacoco-maven-plugin - ${jacoco.version} + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true - - - **/gen/** - **/generated-sources/** - **/yang-gen/** - **/pax/** - + ${onap.nexus.url} + 176c31dfe190a + ecomp-staging - - - - pre-unit-test - - prepare-agent - - - - ${project.build.directory}/code-coverage/jacoco-ut.exec - - surefireArgLine - - - - - post-unit-test - test - - report - - - - ${project.build.directory}/code-coverage/jacoco-ut.exec - - ${project.reporting.outputDirectory}/jacoco-ut - - - - pre-integration-test - pre-integration-test - - prepare-agent - - - - ${project.build.directory}/code-coverage/jacoco-it.exec - - failsafeArgLine - - - - - post-integration-test - post-integration-test - - report - - - - ${project.build.directory}/code-coverage/jacoco-it.exec - - ${project.reporting.outputDirectory}/jacoco-it - - - - - + + org.apache.maven.plugins - maven-surefire-plugin - 2.19.1 + maven-deploy-plugin + 2.8 - - ${surefireArgLine} - - - **/IT*.java - + - + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + + org.apache.maven.plugins - maven-failsafe-plugin - 2.19.1 - - - - integration-tests - - integration-test - verify - - - - ${failsafeArgLine} - - - - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - 3.3.0.603 - + maven-deploy-plugin + - - - - maven-checkstyle-plugin - - - org.codehaus.mojo - build-helper-maven-plugin - 1.12 - - - - org.jacoco - jacoco-maven-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - - - org.apache.maven.plugins - maven-failsafe-plugin - - diff --git a/version/pom.xml b/version/pom.xml deleted file mode 100644 index a88b9d4..0000000 --- a/version/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - 4.0.0 - org.onap.oparent - version - 1.0.0-SNAPSHOT - oparent/version - pom - - 1.8 - 1.8 - UTF-8 - UTF-8 - https://nexus.onap.org - - - - ecomp-releases - ${onap.nexus.url}/content/repositories/releases - - - ecomp-snapshots - ${onap.nexus.url}/content/repositories/snapshots - - - -- cgit 1.2.3-korg