From 62bad0fb2aabffd7d447169078d43f5f78b76190 Mon Sep 17 00:00:00 2001 From: sinthuja Date: Tue, 1 Nov 2016 18:41:14 +0530 Subject: [PATCH 1/5] Removing DAS components from IoT distribution. --- modules/distribution/src/assembly/bin.xml | 80 +--- modules/distribution/src/samples-deployer.xml | 2 +- modules/p2-profile-gen/pom.xml | 348 ++---------------- pom.xml | 6 +- 4 files changed, 31 insertions(+), 405 deletions(-) diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 53cd5216..91582b37 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -1144,32 +1144,8 @@ ${pom.artifactId}-${pom.version}/lib 644 - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/analytics-datasources.xml - - ${pom.artifactId}-${pom.version}/repository/conf/datasources - true - 644 - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cep/storm/storm.yaml - - ${pom.artifactId}-${pom.version}/repository/conf/cep/storm/ - - true - + - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-processor.xml - - ${pom.artifactId}-${pom.version}/repository/conf/ - - true - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/output-event-adapters.xml @@ -1209,59 +1185,7 @@ 644 - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/spark-defaults.conf - - ${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/ - - 755 - - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/external-spark-classpath.conf - - ${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/ - - 755 - - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/fairscheduler.xml - - ${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/ - - 755 - - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/spark-udf-config.xml - - ${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/ - - 755 - - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/bundle-config/com.typesafe.config/reference.conf - - ${pom.artifactId}-${pom.version}/repository/conf/etc/bundle-config/com.typesafe.config/ - - 644 - - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/analytics.war - - ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps - 644 - + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/jwt.properties diff --git a/modules/distribution/src/samples-deployer.xml b/modules/distribution/src/samples-deployer.xml index 6ad04063..6b2d90e5 100644 --- a/modules/distribution/src/samples-deployer.xml +++ b/modules/distribution/src/samples-deployer.xml @@ -185,7 +185,7 @@ - 2.2.3-SNAPSHOT + 2.2.6-SNAPSHOT diff --git a/modules/p2-profile-gen/pom.xml b/modules/p2-profile-gen/pom.xml index 3de7933a..29c6d908 100644 --- a/modules/p2-profile-gen/pom.xml +++ b/modules/p2-profile-gen/pom.xml @@ -212,9 +212,6 @@ org.wso2.carbon.commons:org.wso2.carbon.logging.mgt.feature:${carbon.commons.version} - org.wso2.carbon.commons:org.wso2.carbon.ntask.feature:${carbon.commons.version} @@ -549,56 +546,15 @@ org.wso2.carbon.mediation:org.wso2.carbon.mediation.configadmin.feature:${carbon.mediation.version} - org.wso2.carbon.mediation:org.wso2.carbon.relay.feature:${carbon.mediation.version} - org.wso2.carbon.commons:org.wso2.carbon.system.statistics.feature:${carbon.commons.version} - - - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.core.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.datasource.rdbms.server.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.api.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics-common:org.wso2.carbon.spark.commons.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.messageconsole.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.activitydashboard.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.webservice.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.jsservice.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.restapi.feature:${carbon.analytics.version} - - - org.wso2.carbon.commons:org.wso2.carbon.application.mgt.feature:${carbon.commons.version} @@ -606,93 +562,37 @@ - - org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.core.server.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.datareceiver.feature:${carbon.analytics.common.version} - org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.streamdefn.filesystem.server.feature:${carbon.analytics.common.version} - org.wso2.carbon.analytics:org.wso2.carbon.analytics.eventsink.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.eventtable.feature:${carbon.analytics.version} + org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.core.server.feature:${carbon.analytics.common.version} - - org.wso2.carbon.analytics-common:org.wso2.carbon.event.receiver.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.analytics-common:org.wso2.carbon.event.publisher.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.event-processing:org.wso2.carbon.event.processor.feature:${carbon.event-processing.version} - - - org.wso2.carbon.analytics-common:org.wso2.carbon.event.tracer.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.event-processing:org.wso2.carbon.event.flow.feature:${carbon.event-processing.version} - - - org.wso2.carbon.analytics-common:org.wso2.carbon.event.statistics.feature:${carbon.analytics.common.version} - org.wso2.carbon.analytics-common:org.wso2.carbon.event.stream.feature:${carbon.analytics.common.version} - - org.wso2.carbon.analytics-common:org.wso2.carbon.event.receiver.server.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.event-processing:org.wso2.carbon.event.simulator.feature:${carbon.event-processing.version} - org.wso2.carbon.analytics-common:org.wso2.carbon.event.application.deployer.feature:${carbon.analytics.common.version} - org.wso2.carbon.analytics-common:org.wso2.carbon.event.processor.manager.core.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.analytics-common:org.wso2.carbon.event.processor.manager.commons.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.stream.persistence.server.feature:${carbon.analytics.version} - - - org.wso2.carbon.analytics-common:org.wso2.carbon.event.template.manager.feature:${carbon.analytics.common.version} + org.wso2.carbon.analytics-common:org.wso2.carbon.event.input.adapter.server.feature:${carbon.analytics.common.version} org.wso2.carbon.analytics-common:org.wso2.carbon.event.output.adapter.server.feature:${carbon.analytics.common.version} - - - org.wso2.carbon.analytics-common:org.wso2.carbon.event.input.adapter.server.feature:${carbon.analytics.common.version} org.wso2.carbon.commons:org.wso2.carbon.deployment.synchronizer.feature:${carbon.commons.version} + - - - - - - org.wso2.carbon.dashboards:org.wso2.carbon.dashboards.shindig.feature:${carbon.dashboard.version} - - - org.wso2.carbon.dashboards:org.wso2.carbon.dashboards.portal.feature:${carbon.dashboard.version} - - - org.wso2.carbon.dashboards:org.wso2.carbon.dashboards.deployment.feature:${carbon.dashboard.version} - + - org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.gadget.template.feature:${carbon.analytics.common.version} + org.wso2.carbon.analytics:org.wso2.carbon.analytics.api.client.feature:${carbon.analytics.version} - + @@ -1383,153 +1283,33 @@ ${carbon.commons.version} - - - org.wso2.carbon.analytics.core.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.analytics.datasource.rdbms.server.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.analytics.spark.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.analytics.api.feature.group - ${carbon.analytics.version} - + + - org.wso2.carbon.spark.commons.feature.group + org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group ${carbon.analytics.common.version} - + - - org.wso2.carbon.analytics.messageconsole.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.analytics.activitydashboard.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.analytics.webservice.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.analytics.jsservice.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.analytics.restapi.feature.group - ${carbon.analytics.version} - - + - org.wso2.carbon.databridge.core.server.feature.group - ${carbon.analytics.common.version} - - - org.wso2.carbon.databridge.datareceiver.feature.group - ${carbon.analytics.common.version} - - - - org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group - - ${carbon.analytics.common.version} - - - org.wso2.carbon.analytics.eventsink.feature.group + org.wso2.carbon.analytics.api.client.feature.group ${carbon.analytics.version} - - org.wso2.carbon.analytics.eventtable.feature.group - ${carbon.analytics.version} - - - + - - org.wso2.carbon.event.receiver.feature.group - ${carbon.analytics.common.version} - - - org.wso2.carbon.event.publisher.feature.group - ${carbon.analytics.common.version} - - - org.wso2.carbon.event.processor.feature.group - ${carbon.event-processing.version} - - - org.wso2.carbon.event.tracer.feature.group - ${carbon.analytics.common.version} - - - org.wso2.carbon.event.flow.feature.group - ${carbon.event-processing.version} - - - org.wso2.carbon.event.statistics.feature.group - ${carbon.analytics.common.version} - org.wso2.carbon.event.stream.feature.group ${carbon.analytics.common.version} - - org.wso2.carbon.event.receiver.server.feature.group - ${carbon.analytics.common.version} - - - org.wso2.carbon.event.simulator.feature.group - ${carbon.event-processing.version} - org.wso2.carbon.event.application.deployer.feature.group ${carbon.analytics.common.version} - - org.wso2.carbon.event.processor.manager.core.feature.group - ${carbon.analytics.common.version} - - - org.wso2.carbon.event.processor.manager.commons.feature.group - ${carbon.analytics.common.version} - - - org.wso2.carbon.analytics.stream.persistence.server.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.event.template.manager.feature.group - ${carbon.analytics.common.version} - - - - - org.wso2.carbon.dashboards.shindig.feature.group - ${carbon.dashboard.version} - - - org.wso2.carbon.dashboards.portal.feature.group - ${carbon.dashboard.version} - - - org.wso2.carbon.dashboard.deployment.feature.group - ${carbon.dashboard.version} - - - org.wso2.carbon.analytics.gadget.template.feature.group - ${carbon.analytics.common.version} - - + org.wso2.carbon.andes.server.feature.group @@ -1727,22 +1507,10 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} - - org.wso2.carbon.analytics.core.feature.group - ${carbon.analytics.version} - org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} - - org.wso2.carbon.analytics.datasource.rdbms.server.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.spark.commons.feature.group - ${carbon.analytics.common.version} - @@ -1891,10 +1659,6 @@ org.wso2.carbon.relay.server.feature.group ${carbon.mediation.version} - org.wso2.carbon.event.common.feature.group ${carbon.commons.version} @@ -2079,22 +1843,10 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} - - org.wso2.carbon.analytics.core.feature.group - ${carbon.analytics.version} - org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} - - org.wso2.carbon.analytics.datasource.rdbms.server.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.spark.commons.feature.group - ${carbon.analytics.common.version} - @@ -2311,10 +2063,6 @@ org.wso2.carbon.identity.provider.server.feature.group ${identity.inbound.auth.openid.version} - org.wso2.carbon.event.common.feature.group ${carbon.commons.version} @@ -2499,22 +2247,10 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} - - org.wso2.carbon.analytics.core.feature.group - ${carbon.analytics.version} - org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} - - org.wso2.carbon.analytics.datasource.rdbms.server.feature.group - ${carbon.analytics.version} - - - org.wso2.carbon.spark.commons.feature.group - ${carbon.analytics.common.version} - @@ -2615,10 +2351,6 @@ org.wso2.carbon.identity.oauth2.grant.jwt.feature.group ${identity.jwt.extension.version} - - org.wso2.carbon.event.application.deployer.feature.group - ${carbon.analytics.common.version} - org.wso2.carbon.tenant.mgt.common.feature.group ${carbon.commons.version} @@ -2796,10 +2528,6 @@ org.wso2.carbon.relay.server.feature.group ${carbon.mediation.version} - org.wso2.carbon.event.common.feature.group ${carbon.commons.version} @@ -3031,20 +2759,16 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} - - org.wso2.carbon.analytics.core.feature.group - ${carbon.analytics.version} - org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} - org.wso2.carbon.analytics.datasource.rdbms.server.feature.group - ${carbon.analytics.version} + org.wso2.carbon.event.stream.feature.group + ${carbon.analytics.common.version} - org.wso2.carbon.spark.commons.feature.group + org.wso2.carbon.event.input.adapter.server.feature.group ${carbon.analytics.common.version} @@ -3052,12 +2776,12 @@ ${carbon.analytics.common.version} - org.wso2.carbon.event.input.adapter.server.feature.group + org.wso2.carbon.event.application.deployer.feature.group ${carbon.analytics.common.version} - org.wso2.carbon.databridge.commons.thrift.server.feature.group - ${carbon.analytics.common.version} + org.wso2.carbon.analytics.api.client.feature.group + ${carbon.analytics.version} @@ -3159,10 +2883,6 @@ org.wso2.carbon.identity.oauth2.grant.jwt.feature.group ${identity.jwt.extension.version} - - org.wso2.carbon.event.application.deployer.feature.group - ${carbon.analytics.common.version} - org.wso2.carbon.tenant.mgt.common.feature.group ${carbon.commons.version} @@ -3264,14 +2984,6 @@ org.wso2.carbon.mediation.configadmin.feature.group ${carbon.mediation.version} - - org.wso2.carbon.application.mgt.server.feature.group ${carbon.commons.version} @@ -3336,10 +3048,6 @@ org.wso2.carbon.relay.server.feature.group ${carbon.mediation.version} - org.wso2.carbon.event.common.feature.group ${carbon.commons.version} @@ -3571,20 +3279,16 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} - - org.wso2.carbon.analytics.core.feature.group - ${carbon.analytics.version} - org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} - org.wso2.carbon.analytics.datasource.rdbms.server.feature.group - ${carbon.analytics.version} + org.wso2.carbon.event.stream.feature.group + ${carbon.analytics.common.version} - org.wso2.carbon.spark.commons.feature.group + org.wso2.carbon.event.input.adapter.server.feature.group ${carbon.analytics.common.version} @@ -3592,12 +3296,12 @@ ${carbon.analytics.common.version} - org.wso2.carbon.event.input.adapter.server.feature.group + org.wso2.carbon.event.application.deployer.feature.group ${carbon.analytics.common.version} - org.wso2.carbon.databridge.commons.thrift.server.feature.group - ${carbon.analytics.common.version} + org.wso2.carbon.analytics.api.client.feature.group + ${carbon.analytics.version} diff --git a/pom.xml b/pom.xml index 61767d8c..17df3138 100644 --- a/pom.xml +++ b/pom.xml @@ -1110,7 +1110,8 @@ 4.6.6 - 5.1.4 + 5.1.5-SNAPSHOT + 1.2.9-SNAPSHOT 7.0.59.wso2v1 @@ -1125,11 +1126,8 @@ 1.1.0-wso2v17 - 1.2.8 1.0.0-wso2v3 - 2.0.2 2.0.2 - 2.1.4 4.3.6 3.1.0.wso2v2 From c9a652e04b1ad3430a0e430c2ea585dd79fc6182 Mon Sep 17 00:00:00 2001 From: sinthuja Date: Tue, 1 Nov 2016 20:01:06 +0530 Subject: [PATCH 2/5] Adding DAS remote location with port offset 1. --- modules/distribution/src/assembly/bin.xml | 21 +++--- .../conf/analytics/analytics-data-config.xml | 73 +++++++++++++++++++ 2 files changed, 82 insertions(+), 12 deletions(-) create mode 100644 modules/distribution/src/repository/conf/analytics/analytics-data-config.xml diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 91582b37..8e6aa3d9 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -550,18 +550,6 @@ - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/ - - ${pom.artifactId}-${pom.version}/repository/conf/analytics - - **/analytics-config.xml - **/rdbms-config.xml - **/analytics-data-config.xml - **/analytics-eventsink-config.xml - - @@ -1186,6 +1174,15 @@ + + + src/repository/conf/analytics/analytics-data-config.xml + ${pom.artifactId}-${pom.version}/repository/conf/analytics/ + true + 644 + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/jwt.properties diff --git a/modules/distribution/src/repository/conf/analytics/analytics-data-config.xml b/modules/distribution/src/repository/conf/analytics/analytics-data-config.xml new file mode 100644 index 00000000..1520c8ef --- /dev/null +++ b/modules/distribution/src/repository/conf/analytics/analytics-data-config.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + AUTO + + + + + + http://localhost:9764 + + + + admin + + + + + admin + + + + 200 + + + + 200 + + + + 60000 + + + + 60000 + + + + + + + + + + From 60bfc15344f4a4b6ebce9359964115d7907fe524 Mon Sep 17 00:00:00 2001 From: sinthuja Date: Wed, 2 Nov 2016 10:57:24 +0530 Subject: [PATCH 3/5] Revert: Removing DAS components. --- modules/distribution/src/assembly/bin.xml | 95 ++++- .../conf/analytics/analytics-data-config.xml | 73 ---- modules/distribution/src/samples-deployer.xml | 2 +- modules/p2-profile-gen/pom.xml | 348 ++++++++++++++++-- pom.xml | 6 +- 5 files changed, 414 insertions(+), 110 deletions(-) delete mode 100644 modules/distribution/src/repository/conf/analytics/analytics-data-config.xml diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 8e6aa3d9..53cd5216 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -550,6 +550,18 @@ + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/ + + ${pom.artifactId}-${pom.version}/repository/conf/analytics + + **/analytics-config.xml + **/rdbms-config.xml + **/analytics-data-config.xml + **/analytics-eventsink-config.xml + + @@ -1132,8 +1144,32 @@ ${pom.artifactId}-${pom.version}/lib 644 - + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/analytics-datasources.xml + + ${pom.artifactId}-${pom.version}/repository/conf/datasources + true + 644 + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cep/storm/storm.yaml + + ${pom.artifactId}-${pom.version}/repository/conf/cep/storm/ + + true + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-processor.xml + + ${pom.artifactId}-${pom.version}/repository/conf/ + + true + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/output-event-adapters.xml @@ -1173,16 +1209,59 @@ 644 - - + - src/repository/conf/analytics/analytics-data-config.xml - ${pom.artifactId}-${pom.version}/repository/conf/analytics/ - true + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/spark-defaults.conf + + ${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/ + + 755 + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/external-spark-classpath.conf + + ${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/ + + 755 + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/fairscheduler.xml + + ${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/ + + 755 + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/spark-udf-config.xml + + ${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/ + + 755 + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/bundle-config/com.typesafe.config/reference.conf + + ${pom.artifactId}-${pom.version}/repository/conf/etc/bundle-config/com.typesafe.config/ + + 644 + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/analytics.war + + ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps 644 - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/jwt.properties diff --git a/modules/distribution/src/repository/conf/analytics/analytics-data-config.xml b/modules/distribution/src/repository/conf/analytics/analytics-data-config.xml deleted file mode 100644 index 1520c8ef..00000000 --- a/modules/distribution/src/repository/conf/analytics/analytics-data-config.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - AUTO - - - - - - http://localhost:9764 - - - - admin - - - - - admin - - - - 200 - - - - 200 - - - - 60000 - - - - 60000 - - - - - - - - - - diff --git a/modules/distribution/src/samples-deployer.xml b/modules/distribution/src/samples-deployer.xml index 6b2d90e5..6ad04063 100644 --- a/modules/distribution/src/samples-deployer.xml +++ b/modules/distribution/src/samples-deployer.xml @@ -185,7 +185,7 @@ - 2.2.6-SNAPSHOT + 2.2.3-SNAPSHOT diff --git a/modules/p2-profile-gen/pom.xml b/modules/p2-profile-gen/pom.xml index 29c6d908..3de7933a 100644 --- a/modules/p2-profile-gen/pom.xml +++ b/modules/p2-profile-gen/pom.xml @@ -212,6 +212,9 @@ org.wso2.carbon.commons:org.wso2.carbon.logging.mgt.feature:${carbon.commons.version} + org.wso2.carbon.commons:org.wso2.carbon.ntask.feature:${carbon.commons.version} @@ -546,15 +549,56 @@ org.wso2.carbon.mediation:org.wso2.carbon.mediation.configadmin.feature:${carbon.mediation.version} + org.wso2.carbon.mediation:org.wso2.carbon.relay.feature:${carbon.mediation.version} + org.wso2.carbon.commons:org.wso2.carbon.system.statistics.feature:${carbon.commons.version} + + + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.core.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.datasource.rdbms.server.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.api.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.spark.commons.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.messageconsole.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.activitydashboard.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.webservice.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.jsservice.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.restapi.feature:${carbon.analytics.version} + + + org.wso2.carbon.commons:org.wso2.carbon.application.mgt.feature:${carbon.commons.version} @@ -562,37 +606,93 @@ + + org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.core.server.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.datareceiver.feature:${carbon.analytics.common.version} + org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.streamdefn.filesystem.server.feature:${carbon.analytics.common.version} - org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.core.server.feature:${carbon.analytics.common.version} + org.wso2.carbon.analytics:org.wso2.carbon.analytics.eventsink.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.eventtable.feature:${carbon.analytics.version} + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.receiver.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.publisher.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.event-processing:org.wso2.carbon.event.processor.feature:${carbon.event-processing.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.tracer.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.event-processing:org.wso2.carbon.event.flow.feature:${carbon.event-processing.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.statistics.feature:${carbon.analytics.common.version} + org.wso2.carbon.analytics-common:org.wso2.carbon.event.stream.feature:${carbon.analytics.common.version} + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.receiver.server.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.event-processing:org.wso2.carbon.event.simulator.feature:${carbon.event-processing.version} + org.wso2.carbon.analytics-common:org.wso2.carbon.event.application.deployer.feature:${carbon.analytics.common.version} - org.wso2.carbon.analytics-common:org.wso2.carbon.event.input.adapter.server.feature:${carbon.analytics.common.version} + org.wso2.carbon.analytics-common:org.wso2.carbon.event.processor.manager.core.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.processor.manager.commons.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.stream.persistence.server.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.template.manager.feature:${carbon.analytics.common.version} org.wso2.carbon.analytics-common:org.wso2.carbon.event.output.adapter.server.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.input.adapter.server.feature:${carbon.analytics.common.version} org.wso2.carbon.commons:org.wso2.carbon.deployment.synchronizer.feature:${carbon.commons.version} - - + + + + + + org.wso2.carbon.dashboards:org.wso2.carbon.dashboards.shindig.feature:${carbon.dashboard.version} + + + org.wso2.carbon.dashboards:org.wso2.carbon.dashboards.portal.feature:${carbon.dashboard.version} + + + org.wso2.carbon.dashboards:org.wso2.carbon.dashboards.deployment.feature:${carbon.dashboard.version} + - org.wso2.carbon.analytics:org.wso2.carbon.analytics.api.client.feature:${carbon.analytics.version} + org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.gadget.template.feature:${carbon.analytics.common.version} - + @@ -1283,34 +1383,154 @@ ${carbon.commons.version} - - + + + org.wso2.carbon.analytics.core.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.datasource.rdbms.server.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.spark.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.api.feature.group + ${carbon.analytics.version} + - org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group + org.wso2.carbon.spark.commons.feature.group ${carbon.analytics.common.version} - + + + org.wso2.carbon.analytics.messageconsole.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.activitydashboard.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.webservice.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.jsservice.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.restapi.feature.group + ${carbon.analytics.version} + - + - org.wso2.carbon.analytics.api.client.feature.group + org.wso2.carbon.databridge.core.server.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.databridge.datareceiver.feature.group + ${carbon.analytics.common.version} + + + + org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group + + ${carbon.analytics.common.version} + + + org.wso2.carbon.analytics.eventsink.feature.group ${carbon.analytics.version} - + + org.wso2.carbon.analytics.eventtable.feature.group + ${carbon.analytics.version} + + + + + org.wso2.carbon.event.receiver.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.publisher.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.processor.feature.group + ${carbon.event-processing.version} + + + org.wso2.carbon.event.tracer.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.flow.feature.group + ${carbon.event-processing.version} + + + org.wso2.carbon.event.statistics.feature.group + ${carbon.analytics.common.version} + org.wso2.carbon.event.stream.feature.group ${carbon.analytics.common.version} + + org.wso2.carbon.event.receiver.server.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.simulator.feature.group + ${carbon.event-processing.version} + org.wso2.carbon.event.application.deployer.feature.group ${carbon.analytics.common.version} - + + org.wso2.carbon.event.processor.manager.core.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.processor.manager.commons.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.analytics.stream.persistence.server.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.event.template.manager.feature.group + ${carbon.analytics.common.version} + + + + org.wso2.carbon.dashboards.shindig.feature.group + ${carbon.dashboard.version} + + + org.wso2.carbon.dashboards.portal.feature.group + ${carbon.dashboard.version} + + + org.wso2.carbon.dashboard.deployment.feature.group + ${carbon.dashboard.version} + + + org.wso2.carbon.analytics.gadget.template.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.andes.server.feature.group ${carbon.messaging.version} @@ -1507,10 +1727,22 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.analytics.core.feature.group + ${carbon.analytics.version} + org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.analytics.datasource.rdbms.server.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.spark.commons.feature.group + ${carbon.analytics.common.version} + @@ -1659,6 +1891,10 @@ org.wso2.carbon.relay.server.feature.group ${carbon.mediation.version} + org.wso2.carbon.event.common.feature.group ${carbon.commons.version} @@ -1843,10 +2079,22 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.analytics.core.feature.group + ${carbon.analytics.version} + org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.analytics.datasource.rdbms.server.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.spark.commons.feature.group + ${carbon.analytics.common.version} + @@ -2063,6 +2311,10 @@ org.wso2.carbon.identity.provider.server.feature.group ${identity.inbound.auth.openid.version} + org.wso2.carbon.event.common.feature.group ${carbon.commons.version} @@ -2247,10 +2499,22 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.analytics.core.feature.group + ${carbon.analytics.version} + org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.analytics.datasource.rdbms.server.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.spark.commons.feature.group + ${carbon.analytics.common.version} + @@ -2351,6 +2615,10 @@ org.wso2.carbon.identity.oauth2.grant.jwt.feature.group ${identity.jwt.extension.version} + + org.wso2.carbon.event.application.deployer.feature.group + ${carbon.analytics.common.version} + org.wso2.carbon.tenant.mgt.common.feature.group ${carbon.commons.version} @@ -2528,6 +2796,10 @@ org.wso2.carbon.relay.server.feature.group ${carbon.mediation.version} + org.wso2.carbon.event.common.feature.group ${carbon.commons.version} @@ -2759,16 +3031,20 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.analytics.core.feature.group + ${carbon.analytics.version} + org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} - org.wso2.carbon.event.stream.feature.group - ${carbon.analytics.common.version} + org.wso2.carbon.analytics.datasource.rdbms.server.feature.group + ${carbon.analytics.version} - org.wso2.carbon.event.input.adapter.server.feature.group + org.wso2.carbon.spark.commons.feature.group ${carbon.analytics.common.version} @@ -2776,12 +3052,12 @@ ${carbon.analytics.common.version} - org.wso2.carbon.event.application.deployer.feature.group + org.wso2.carbon.event.input.adapter.server.feature.group ${carbon.analytics.common.version} - org.wso2.carbon.analytics.api.client.feature.group - ${carbon.analytics.version} + org.wso2.carbon.databridge.commons.thrift.server.feature.group + ${carbon.analytics.common.version} @@ -2883,6 +3159,10 @@ org.wso2.carbon.identity.oauth2.grant.jwt.feature.group ${identity.jwt.extension.version} + + org.wso2.carbon.event.application.deployer.feature.group + ${carbon.analytics.common.version} + org.wso2.carbon.tenant.mgt.common.feature.group ${carbon.commons.version} @@ -2984,6 +3264,14 @@ org.wso2.carbon.mediation.configadmin.feature.group ${carbon.mediation.version} + + org.wso2.carbon.application.mgt.server.feature.group ${carbon.commons.version} @@ -3048,6 +3336,10 @@ org.wso2.carbon.relay.server.feature.group ${carbon.mediation.version} + org.wso2.carbon.event.common.feature.group ${carbon.commons.version} @@ -3279,16 +3571,20 @@ org.wso2.carbon.certificate.mgt.server.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.analytics.core.feature.group + ${carbon.analytics.version} + org.wso2.carbon.device.mgt.analytics.dashboard.feature.group ${carbon.device.mgt.version} - org.wso2.carbon.event.stream.feature.group - ${carbon.analytics.common.version} + org.wso2.carbon.analytics.datasource.rdbms.server.feature.group + ${carbon.analytics.version} - org.wso2.carbon.event.input.adapter.server.feature.group + org.wso2.carbon.spark.commons.feature.group ${carbon.analytics.common.version} @@ -3296,12 +3592,12 @@ ${carbon.analytics.common.version} - org.wso2.carbon.event.application.deployer.feature.group + org.wso2.carbon.event.input.adapter.server.feature.group ${carbon.analytics.common.version} - org.wso2.carbon.analytics.api.client.feature.group - ${carbon.analytics.version} + org.wso2.carbon.databridge.commons.thrift.server.feature.group + ${carbon.analytics.common.version} diff --git a/pom.xml b/pom.xml index 17df3138..61767d8c 100644 --- a/pom.xml +++ b/pom.xml @@ -1110,8 +1110,7 @@ 4.6.6 - 5.1.5-SNAPSHOT - 1.2.9-SNAPSHOT + 5.1.4 7.0.59.wso2v1 @@ -1126,8 +1125,11 @@ 1.1.0-wso2v17 + 1.2.8 1.0.0-wso2v3 + 2.0.2 2.0.2 + 2.1.4 4.3.6 3.1.0.wso2v2 From 1ade00fa6440f3b3239406e0b3f8dbcd5d8c4d7c Mon Sep 17 00:00:00 2001 From: susinda Date: Wed, 2 Nov 2016 12:42:22 +0530 Subject: [PATCH 4/5] Reverting 'Merge pull request #185' as this need to be done in iots-1.0.0 branch --- modules/distribution/src/assembly/bin.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 10b8e031..53cd5216 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -303,17 +303,6 @@ - - - - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/certMgt - - ${pom.artifactId}-${pom.version}/dbscripts/certMgt - - */** - - - From c992e68ec7bcc30b72a688b1bbe337a9271cbdf0 Mon Sep 17 00:00:00 2001 From: sinthuja Date: Wed, 2 Nov 2016 13:15:34 +0530 Subject: [PATCH 5/5] Revert: removing MB references from IOTserver pack (1fe9a801028d518c26afcc76b762b44e6da8f6d9) --- modules/distribution/src/assembly/bin.xml | 26 +++++++++---------- .../pom.xml | 1 - .../DeviceAccessBasedMQTTAuthorizer.java | 8 ------ modules/p2-profile-gen/pom.xml | 23 ++++++++++++++++ pom.xml | 5 ++++ 5 files changed, 41 insertions(+), 22 deletions(-) diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index f936ceed..53cd5216 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -216,7 +216,7 @@ **/api-manager.xml **/sso-idp-config.xml **/application-authentication.xml - + **/broker.xml **/log4j.properties **/nhttp.properties **/passthru-http.properties @@ -574,7 +574,7 @@ 644 - + - + - + @@ -856,12 +856,12 @@ 644 - + @@ -937,11 +937,11 @@ 644 - + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading.xml @@ -994,11 +994,11 @@ ${pom.artifactId}-${pom.version}/repository/database/ 644 - + diff --git a/modules/iot-extensions/components/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/pom.xml b/modules/iot-extensions/components/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/pom.xml index 6bea07b3..61a8ba37 100644 --- a/modules/iot-extensions/components/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/pom.xml +++ b/modules/iot-extensions/components/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/pom.xml @@ -45,7 +45,6 @@ org.wso2.andes.wso2 andes - 3.1.2 org.wso2.carbon diff --git a/modules/iot-extensions/components/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/mqtt/authorization/DeviceAccessBasedMQTTAuthorizer.java b/modules/iot-extensions/components/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/mqtt/authorization/DeviceAccessBasedMQTTAuthorizer.java index bd122392..3e0adfaf 100644 --- a/modules/iot-extensions/components/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/mqtt/authorization/DeviceAccessBasedMQTTAuthorizer.java +++ b/modules/iot-extensions/components/mb-extensions/org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization/src/main/java/org/wso2/carbon/andes/extensions/device/mgt/mqtt/authorization/DeviceAccessBasedMQTTAuthorizer.java @@ -53,19 +53,15 @@ public class DeviceAccessBasedMQTTAuthorizer implements IAuthorizer { @Override public boolean isAuthorizedForTopic(MQTTAuthorizationSubject authorizationSubject, String topic, MQTTAuthoriztionPermissionLevel permissionLevel) { - if (isUserAuthorized(authorizationSubject, ADMIN_PERMISSION, UI_EXECUTE)) { - System.out.println("isAuthorizedForTopic - user is auth success !"); return true; } String topics[] = topic.split("/"); if (topics.length < 3) { - System.out.println("isAuthorizedForTopic topic name invalid"); return false; } String tenantIdFromTopic = topics[0]; if (!tenantIdFromTopic.equals(authorizationSubject.getTenantDomain())) { - System.out.println("isAuthorizedForTopic tenantID invalid"); return false; } String deviceType = topics[1]; @@ -82,12 +78,10 @@ public class DeviceAccessBasedMQTTAuthorizer implements IAuthorizer { + permissionScope; for (String scope : scopes) { if (requiredScope.equals(scope)) { - System.out.println("isAuthorizedForTopic - Pass"); return true; } } } - System.out.println("isAuthorizedForTopic - Failed"); return false; } @@ -119,12 +113,10 @@ public class DeviceAccessBasedMQTTAuthorizer implements IAuthorizer { if (userRealm != null && userRealm.getAuthorizationManager() != null) { return userRealm.getAuthorizationManager().isUserAuthorized(username, permission, action); } - System.out.println("isUserAuthorized failse"); return false; } catch (UserStoreException e) { String errorMsg = String.format("Unable to authorize the user : %s", username); logger.error(errorMsg, e); - System.out.println("isUserAuthorized failed"); return false; } finally { PrivilegedCarbonContext.endTenantFlow(); diff --git a/modules/p2-profile-gen/pom.xml b/modules/p2-profile-gen/pom.xml index 032519fc..3de7933a 100644 --- a/modules/p2-profile-gen/pom.xml +++ b/modules/p2-profile-gen/pom.xml @@ -695,6 +695,9 @@ + + org.wso2.carbon.messaging:org.wso2.carbon.andes.server.feature:${carbon.messaging.version} + org.wso2.carbon.metrics:org.wso2.carbon.metrics.feature:${carbon.metrics.version} @@ -828,6 +831,10 @@ org.wso2.iot.styles.feature.group ${carbon.iot.device.mgt.version} + + org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization.feature.group + ${carbon.iot.device.mgt.version} + @@ -1524,6 +1531,10 @@ + + org.wso2.carbon.andes.server.feature.group + ${carbon.messaging.version} + org.wso2.carbon.metrics.feature.group ${carbon.metrics.version} @@ -1566,11 +1577,23 @@ org.wso2.iot.styles.feature.group ${carbon.iot.device.mgt.version} + + org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization.feature.group + ${carbon.iot.device.mgt.version} + org.wso2.carbon.logging.mgt.feature.group ${carbon.commons.version} + + org.wso2.carbon.andes.extensions.device.mgt.mqtt.authorization.feature.group + ${carbon.iot.device.mgt.version} + + + org.wso2.carbon.andes.server.feature.group + ${carbon.messaging.version} + org.wso2.carbon.metrics.feature.group ${carbon.metrics.version} diff --git a/pom.xml b/pom.xml index 999fbebf..61767d8c 100644 --- a/pom.xml +++ b/pom.xml @@ -1015,6 +1015,11 @@ org.eclipse.paho.client.mqttv3 ${eclipse.paho.version} + + org.wso2.andes.wso2 + andes + ${carbon.messaging.version} +