From 78fc81bf6a35077b8ad80cf29b218477baa15a47 Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Tue, 11 Sep 2018 14:38:13 -0400 Subject: Migrate features to Oxygen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic9db80e71070093209b8eda1cdd12e053a18aded Issue-ID: CCSDK-505 Signed-off-by: Alexis de Talhouët --- .../adaptors/data-adaptor-provider/pom.xml | 12 - .../data/adaptor/dao/ConfigPropertyMapDaoImpl.java | 23 +- .../org/opendaylight/blueprint/impl-blueprint.xml | 28 +- .../adaptors/rest-adaptor-provider/pom.xml | 14 +- .../features/ccsdk-blueprints-processor/pom.xml | 173 ++++++++++ .../features/features-blueprints-processor/pom.xml | 45 +++ blueprints-processor/features/pom.xml | 148 +++------ .../features/src/main/resources/features.xml | 71 ---- blueprints-processor/installer/pom.xml | 2 +- .../plugin/assignment-provider/pom.xml | 7 - .../org/opendaylight/blueprint/impl-blueprint.xml | 5 - .../plugin/generator-provider/pom.xml | 7 - blueprints-processor/plugin/model-provider/pom.xml | 10 +- blueprints-processor/pom.xml | 368 --------------------- 14 files changed, 287 insertions(+), 626 deletions(-) create mode 100644 blueprints-processor/features/ccsdk-blueprints-processor/pom.xml create mode 100755 blueprints-processor/features/features-blueprints-processor/pom.xml mode change 100644 => 100755 blueprints-processor/features/pom.xml delete mode 100644 blueprints-processor/features/src/main/resources/features.xml diff --git a/blueprints-processor/adaptors/data-adaptor-provider/pom.xml b/blueprints-processor/adaptors/data-adaptor-provider/pom.xml index a965c7fcd..9454421d2 100644 --- a/blueprints-processor/adaptors/data-adaptor-provider/pom.xml +++ b/blueprints-processor/adaptors/data-adaptor-provider/pom.xml @@ -122,18 +122,6 @@ org.onap.ccsdk.config.data.adaptor.domain, org.onap.ccsdk.config.data.adaptor.service - !*spring*,!joptsimple,!net.*,!bsh, - !org.apache.commons.pool*,!org.apache.commons.fileupload*,!org.apache.http.*,!org.apache.logger*, - !org.apache.lucene*,!org.apache.t*,!org.apache.derby*,!org.codehaus.groovy*,!org.custommonkey.xmlunit*, - !org.hibernate*,!org.jruby*,!org.aspectj*,!org.mockito*,!org.openqa*,!org.skyscreamer*,!org.testng*, - !com.caucho*,!com.gargoylesoftware*,!com.jamonapi*,!com.rometools*,!com.squareup*,!com.sun*,!groovy*, - !javax.ejb*,!javax.enterprise*,!javax.faces*,!javax.in*,!javax.money*,!javax.portlet*,!javax.resource*, - org.*,javax.*,com.google.gson*,com.google.common.*,*jackson* - - - *;groupId=!*eelf*|*opendaylight*|*ccsdk*|*osgi*|*jackson*|*json*|*powermock*|*junit* - - true diff --git a/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/dao/ConfigPropertyMapDaoImpl.java b/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/dao/ConfigPropertyMapDaoImpl.java index 423e01451..65e241e7d 100644 --- a/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/dao/ConfigPropertyMapDaoImpl.java +++ b/blueprints-processor/adaptors/data-adaptor-provider/src/main/java/org/onap/ccsdk/config/data/adaptor/dao/ConfigPropertyMapDaoImpl.java @@ -25,6 +25,7 @@ import java.util.concurrent.TimeUnit; import org.apache.commons.lang3.StringUtils; import org.onap.ccsdk.config.data.adaptor.DataAdaptorConstants; import org.onap.ccsdk.sli.core.sli.SvcLogicException; +import org.springframework.jdbc.CannotGetJdbcConnectionException; import org.springframework.jdbc.core.JdbcTemplate; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; @@ -45,21 +46,23 @@ public class ConfigPropertyMapDaoImpl implements ConfigPropertyMapDao { if (!(DataAdaptorConstants.PROPERTY_ENV_PROD.equalsIgnoreCase(envType) || DataAdaptorConstants.PROPERTY_ENV_SOLO.equalsIgnoreCase(envType))) { ScheduledExecutorService executor = Executors.newScheduledThreadPool(1); - Runnable task = () -> { - initializeMap(); - }; + Runnable task = this::initializeMap; executor.scheduleWithFixedDelay(task, 60, 15, TimeUnit.MINUTES); } } private void initializeMap() { - String getPropQuery = "SELECT * FROM CONFIG_PROPERTY_MAP"; - jdbcTemplate.queryForList(getPropQuery).forEach(rows -> { - String key = StringUtils.trimToEmpty((String) rows.get("reference_key")); - String value = StringUtils.trimToEmpty((String) rows.get("reference_value")); - configPropertyMap.put(key, value); - }); - logger.trace("loaded configPropertyMap : ({})", configPropertyMap); + try { + String getPropQuery = "SELECT * FROM CONFIG_PROPERTY_MAP"; + jdbcTemplate.queryForList(getPropQuery).forEach(rows -> { + String key = StringUtils.trimToEmpty((String) rows.get("reference_key")); + String value = StringUtils.trimToEmpty((String) rows.get("reference_value")); + configPropertyMap.put(key, value); + }); + logger.trace("loaded configPropertyMap : ({})", configPropertyMap); + } catch (CannotGetJdbcConnectionException e) { + // WHAT TO DO? + } } @Override diff --git a/blueprints-processor/adaptors/data-adaptor-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml b/blueprints-processor/adaptors/data-adaptor-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml index 4cf4d78cc..644fd77f4 100644 --- a/blueprints-processor/adaptors/data-adaptor-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml +++ b/blueprints-processor/adaptors/data-adaptor-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml @@ -24,20 +24,6 @@ - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/blueprints-processor/adaptors/rest-adaptor-provider/pom.xml b/blueprints-processor/adaptors/rest-adaptor-provider/pom.xml index d35f1c1a3..6f17a1cef 100644 --- a/blueprints-processor/adaptors/rest-adaptor-provider/pom.xml +++ b/blueprints-processor/adaptors/rest-adaptor-provider/pom.xml @@ -74,7 +74,7 @@ org.yaml snakeyaml - 1.12 + 1.17 org.json @@ -176,18 +176,6 @@ org.onap.ccsdk.config.rest.adaptor.service, org.onap.ccsdk.config.rest.adaptor.utils - !*spring*,!joptsimple,!net.*,!bsh, - !org.apache.commons.pool*,!org.apache.commons.fileupload*,!org.apache.http.*,!org.apache.logger*, - !org.apache.lucene*,!org.apache.t*,!org.apache.derby*,!org.codehaus.groovy*,!org.custommonkey.xmlunit*, - !org.hibernate*,!org.jruby*,!org.aspectj*,!org.mockito*,!org.openqa*,!org.skyscreamer*,!org.testng*, - !com.caucho*,!com.gargoylesoftware*,!com.jamonapi*,!com.rometools*,!com.squareup*,!com.sun*,!groovy*, - !javax.ejb*,!javax.enterprise*,!javax.faces*,!javax.in*,!javax.money*,!javax.portlet*,!javax.resource*, - org.*,javax.*,com.google.gson*,com.google.common.*,*jackson* - - - *;groupId=!*eelf*|*opendaylight*|*ccsdk*|*osgi*|*jackson*|*json*|*powermock*|*junit* - - true diff --git a/blueprints-processor/features/ccsdk-blueprints-processor/pom.xml b/blueprints-processor/features/ccsdk-blueprints-processor/pom.xml new file mode 100644 index 000000000..f53b24af4 --- /dev/null +++ b/blueprints-processor/features/ccsdk-blueprints-processor/pom.xml @@ -0,0 +1,173 @@ + + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 1.1.0-SNAPSHOT + + + + org.onap.ccsdk.config + ccsdk-blueprints-processor + 0.3.0-SNAPSHOT + feature + + Blueprints Processor :: Features :: ${project.artifactId} + + + 3.2.2 + 2.5 + 1.12 + 1.7 + 2.3.0 + 2.3 + 1.2 + 0.1.54 + + + + + org.opendaylight.controller + odl-mdsal-broker + xml + features + + + + org.onap.ccsdk.sli.core + ccsdk-sli + xml + features + + + + ${project.groupId} + blueprints-rest-adaptor-provider + ${project.version} + + + ${project.groupId} + blueprints-data-adaptor-provider + ${project.version} + + + ${project.groupId} + blueprints-model-provider + ${project.version} + + + ${project.groupId} + blueprints-generator-provider + ${project.version} + + + ${project.groupId} + blueprints-assignment-provider + ${project.version} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blueprints-processor/features/features-blueprints-processor/pom.xml b/blueprints-processor/features/features-blueprints-processor/pom.xml new file mode 100755 index 000000000..9e8c80296 --- /dev/null +++ b/blueprints-processor/features/features-blueprints-processor/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + + org.onap.ccsdk.parent + feature-repo-parent + 1.1.0-SNAPSHOT + + + + org.onap.ccsdk.config + features-blueprints-processor + 0.3.0-SNAPSHOT + feature + + Blueprints Processor :: CCSDK Features :: ${project.artifactId} + + + + ${project.groupId} + ccsdk-blueprints-processor + ${project.version} + xml + features + + + + diff --git a/blueprints-processor/features/pom.xml b/blueprints-processor/features/pom.xml old mode 100644 new mode 100755 index f80d14fd3..5f93e83f4 --- a/blueprints-processor/features/pom.xml +++ b/blueprints-processor/features/pom.xml @@ -1,109 +1,39 @@ - - - - - 4.0.0 - - org.onap.ccsdk.config - blueprints-processor - 0.3.0-SNAPSHOT - - - blueprints-processor-features - jar - Blueprints Processor - Features - - - - org.onap.ccsdk.config - blueprints-data-adaptor-provider - - - org.onap.ccsdk.config - blueprints-rest-adaptor-provider - - - org.onap.ccsdk.config - blueprints-assignment-provider - - - org.onap.ccsdk.config - blueprints-generator-provider - - - org.onap.ccsdk.config - blueprints-model-provider - - - - org.opendaylight.mdsal - features-mdsal - features - xml - runtime - - - - - - - true - src/main/resources - - - - - org.apache.maven.plugins - maven-resources-plugin - - - filter - - resources - - generate-resources - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - attach-artifact - - package - - - - ${project.build.directory}/classes/${features.file} - xml - features - - - - - - - - - + + + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 1.1.0-SNAPSHOT + + + + org.onap.ccsdk.sli.adaptors + blueprints-processor-features + 0.3.0-SNAPSHOT + pom + + Blueprints Processor :: Features aggregator :: ${project.artifactId} + + + ccsdk-blueprints-processor + features-blueprints-processor + + diff --git a/blueprints-processor/features/src/main/resources/features.xml b/blueprints-processor/features/src/main/resources/features.xml deleted file mode 100644 index 4375fa9ed..000000000 --- a/blueprints-processor/features/src/main/resources/features.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - mvn:org.opendaylight.mdsal/features-mdsal/${odl.mdsal.features.version}/xml/features - - - ccsdk-sli - - wrap:mvn:com.jcraft/jsch/${jsch.version} - wrap:mvn:com.jayway.jsonpath/json-path/${jsonpath.version} - - wrap:mvn:org.json/json/${org.json.version} - wrap:mvn:org.yaml/snakeyaml/${snakeyaml.version} - wrap:mvn:org.apache.velocity/velocity/${velocity.version} - - wrap:mvn:commons-io/commons-io/${common.io.version} - wrap:mvn:net.minidev/json-smart/${json-smart.version} - wrap:mvn:net.minidev/accessors-smart/${accessors-smart.version} - - mvn:commons-lang/commons-lang/${commons.lang.version} - mvn:commons-collections/commons-collections/${common.collections.version} - - wrap:mvn:com.fasterxml.jackson.core/jackson-core/${jackson.version} - wrap:mvn:com.fasterxml.jackson.core/jackson-databind/${jackson.version} - wrap:mvn:com.fasterxml.jackson.core/jackson-annotations/${jackson.version} - wrap:mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-xml/${jackson.version} - wrap:mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/${jackson.version} - wrap:mvn:com.fasterxml.jackson.module/jackson-module-jsonSchema/${jackson.version} - wrap:mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/${jackson.version} - - - - blueprints-processor-dependency - mvn:org.onap.ccsdk.config/blueprints-rest-adaptor-provider/${project.version} - mvn:org.onap.ccsdk.config/blueprints-data-adaptor-provider/${project.version} - mvn:org.onap.ccsdk.config/blueprints-model-provider/${project.version} - - - - blueprints-processor-libs - mvn:org.onap.ccsdk.config/blueprints-generator-provider/${project.version} - mvn:org.onap.ccsdk.config/blueprints-assignment-provider/${project.version} - - - diff --git a/blueprints-processor/installer/pom.xml b/blueprints-processor/installer/pom.xml index 65d42ecaa..74591e211 100644 --- a/blueprints-processor/installer/pom.xml +++ b/blueprints-processor/installer/pom.xml @@ -43,7 +43,7 @@ org.onap.ccsdk.config - blueprints-processor-features + ccsdk-blueprints-processor ${project.version} features xml diff --git a/blueprints-processor/plugin/assignment-provider/pom.xml b/blueprints-processor/plugin/assignment-provider/pom.xml index 073f9af9e..6eeac1044 100644 --- a/blueprints-processor/plugin/assignment-provider/pom.xml +++ b/blueprints-processor/plugin/assignment-provider/pom.xml @@ -36,11 +36,6 @@ http://maven.apache.org - - equinoxSDK381 - org.eclipse.osgi - ${equinox.osgi.version} - org.onap.ccsdk.config blueprints-generator-provider @@ -95,8 +90,6 @@ org.onap.ccsdk.config.assignment.processor, org.onap.ccsdk.config.assignment.processor.custom - * - true diff --git a/blueprints-processor/plugin/assignment-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml b/blueprints-processor/plugin/assignment-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml index c880c8d4f..baa6bdbc5 100644 --- a/blueprints-processor/plugin/assignment-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml +++ b/blueprints-processor/plugin/assignment-provider/src/main/resources/org/opendaylight/blueprint/impl-blueprint.xml @@ -35,9 +35,6 @@ - - @@ -46,7 +43,6 @@ - - http://maven.apache.org - - org.eclipse.osgi - equinoxSDK381 - ${equinox.osgi.version} - org.onap.ccsdk.config blueprints-model-provider @@ -92,8 +87,6 @@ org.onap.ccsdk.config.generator.service, org.onap.ccsdk.config.generator.tool - * - true diff --git a/blueprints-processor/plugin/model-provider/pom.xml b/blueprints-processor/plugin/model-provider/pom.xml index 7710fbbed..f14ec3afa 100644 --- a/blueprints-processor/plugin/model-provider/pom.xml +++ b/blueprints-processor/plugin/model-provider/pom.xml @@ -36,11 +36,6 @@ http://maven.apache.org - - equinoxSDK381 - org.eclipse.osgi - ${equinox.osgi.version} - org.onap.ccsdk.config blueprints-rest-adaptor-provider @@ -97,15 +92,12 @@ org.onap.ccsdk.config.model, org.onap.ccsdk.config.model.data, org.onap.ccsdk.config.model.data.api, - org.onap.ccsdk.config.model.data.custom, - org.onap.ccsdk.config.model.data.custom.dict, + org.onap.ccsdk.config.model.data.dict, org.onap.ccsdk.config.model.domain, org.onap.ccsdk.config.model.service, org.onap.ccsdk.config.model.utils, org.onap.ccsdk.config.model.validator - * - true diff --git a/blueprints-processor/pom.xml b/blueprints-processor/pom.xml index 3111fc9f5..ee8ce1dab 100644 --- a/blueprints-processor/pom.xml +++ b/blueprints-processor/pom.xml @@ -36,374 +36,6 @@ http://wiki.sdn.labs.att.com Blueprints Processor Blueprints Processor - - false - 3.5.0 - - 2.3.3 - 0.7.3 - - 4.2.9.RELEASE - 4.4.10 - 4.5.6 - - 3.2.2 - 2.5 - 1.12 - 1.7 - - 2.3.0 - 2.3 - - 1.2 - 5.0.4 - 0.1.54 - 1.9.2 - 2.11.0 - - - 1.6.6 - 2.3.2 - - - - - - org.onap.ccsdk.config - blueprints-processor-features - features - xml - ${project.version} - - - org.onap.ccsdk.sli.core - sli-provider - ${ccsdk.sli.core.version} - compile - - - org.apache.karaf.shell - - org.apache.karaf.shell.console - - - - - - org.onap.ccsdk.sli.adaptors - sql-resource-provider - ${ccsdk.sli.adaptors.version} - compile - - - - - org.opendaylight.mdsal - features-mdsal - ${odl.mdsal.features.version} - features - xml - runtime - - - - - org.apache.commons - commons-lang3 - ${commons.lang3.version} - - - com.att.eelf - eelf-core - ${eelf.version} - - - - org.springframework - spring-core - ${spring.version} - - - org.springframework - spring-aop - ${spring.version} - - - org.springframework - spring-beans - ${spring.version} - - - org.springframework - spring-context - ${spring.version} - - - org.springframework - spring-expression - ${spring.version} - - - org.springframework - spring-jdbc - ${spring.version} - - - org.springframework - spring-tx - ${spring.version} - - - org.springframework - spring-web - ${spring.version} - - - equinoxSDK381 - org.eclipse.osgi - ${equinox.osgi.version} - - - com.fasterxml.jackson.core - jackson-databind - ${jackson.version} - - - com.fasterxml.jackson.core - jackson-annotations - ${jackson.version} - - - com.fasterxml.jackson.core - jackson-core - ${jackson.version} - - - com.fasterxml.jackson.dataformat - jackson-dataformat-xml - ${jackson.version} - - - com.fasterxml.jackson.module - jackson-module-jaxb-annotations - ${jackson.version} - - - com.fasterxml.jackson.dataformat - jackson-dataformat-yaml - ${jackson.version} - - - com.fasterxml.jackson.module - jackson-module-jsonSchema - ${jackson.version} - - - com.fasterxml.jackson.datatype - jackson-datatype-json-org - ${jackson.version} - - - com.fasterxml.jackson.jaxrs - jackson-jaxrs-base - ${jackson.version} - - - com.fasterxml.jackson.jaxrs - jackson-jaxrs-json-provider - ${jackson.version} - - - org.json - json - ${org.json.version} - - - com.jayway.jsonpath - json-path - ${jsonpath.version} - - - org.yaml - snakeyaml - ${snakeyaml.version} - - - org.apache.velocity - velocity - ${velocity.version} - - - commons-collections - commons-collections - ${common.collections.version} - - - commons-io - commons-io - ${common.io.version} - - - org.codehaus.jettison - jettison - ${jettison.version} - provided - - - com.jcraft - jsch - ${jsch.version} - - - org.jasypt - jasypt - ${jasypt.version} - - - xerces - xercesImpl - ${xercesImpl.version} - - - com.sun.jersey - jersey-client - ${jersey.client.version} - provided - - - com.sun.jersey - jersey-core - ${jersey.version} - provided - - - org.mariadb.jdbc - mariadb-java-client - ${mariadb.connector.version} - runtime - - - - - org.apache.httpcomponents - httpclient-osgi - ${apache.httpcomponents.client.version} - - - org.apache.httpcomponents - httpcore-osgi - ${apache.httpcomponents.core.version} - - - - - org.onap.ccsdk.config - blueprints-model-provider - ${project.version} - compile - - - org.onap.ccsdk.config - blueprints-data-adaptor-provider - ${project.version} - compile - - - org.onap.ccsdk.config - blueprints-rest-adaptor-provider - ${project.version} - compile - - - org.onap.ccsdk.config - blueprints-generator-provider - ${project.version} - compile - - - org.onap.ccsdk.config - blueprints-assignment-provider - ${project.version} - compile - - - - - org.springframework - spring-test - ${spring.version} - test - - - com.h2database - h2 - ${h2database.version} - test - - - org.apache.sling - org.apache.sling.testing.osgi-mock - ${sling.version} - test - - - org.mockito - mockito-core - ${mockito.version} - test - - - org.powermock - powermock-api-mockito - ${powermock.version} - test - - - org.powermock - powermock-api-support - ${powermock.version} - test - - - org.powermock - powermock-core - ${powermock.version} - test - - - org.powermock - powermock-module-junit4 - ${powermock.version} - test - - - org.powermock - powermock-reflect - ${powermock.version} - test - - - junit - junit - ${junit.version} - test - - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - org.opendaylight.*:io.netty.*:org.osgi.*:org.apache.* - - - - - - adaptors plugin -- cgit 1.2.3-korg