From 834ad4f7727ed6aa236bda31eb9f6b95659a3a32 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Fri, 5 May 2017 01:36:36 +0530 Subject: [PATCH 1/3] added missing appm features and installed android sense feature to the default pack --- modules/distribution/src/assembly/bin.xml | 33 ++---- .../core/resources/tenant/tenant-conf.json | 109 ++++++++++++++++++ modules/p2-profile/iot-core-profile/pom.xml | 64 ++++++++++ modules/scripts/mobile-qsg/pom.xml | 66 ----------- 4 files changed, 181 insertions(+), 91 deletions(-) create mode 100644 modules/distribution/src/core/resources/tenant/tenant-conf.json diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index b146f348..e45d239f 100755 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -323,7 +323,7 @@ - + ../p2-profile/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/wso2/deployment/server/devicetypes @@ -571,15 +571,6 @@ - - ../scripts/mobile-qsg/target - - ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps - - - **/**.war - - @@ -662,6 +653,7 @@ */** + true @@ -1327,6 +1319,12 @@ true 644 + + src/core/resources/tenant/tenant-conf.json + ${pom.artifactId}-${pom.version}/repository/resources/tenant + true + 644 + @@ -1425,15 +1423,6 @@ true 644 - - - - ../p2-profile/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/wso2/resources/devicetypes/org_wso2_carbon_device_mgt_cdmf_analytics-1.0.0.car - - ${pom.artifactId}-${pom.version}/repository/deployment/server/carbonapps/ - - 644 - src/core/conf/etc/webapp-publisher-config.xml @@ -1560,12 +1549,6 @@ ${pom.artifactId}-${pom.version}/samples/mobile-qsg - - ../scripts/mobile-qsg/target/org.wso2.carbon.appmgt.oauth.core-1.2.5.jar - - ${pom.artifactId}-${pom.version}/dropins - - ../p2-profile/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/governance.xml diff --git a/modules/distribution/src/core/resources/tenant/tenant-conf.json b/modules/distribution/src/core/resources/tenant/tenant-conf.json new file mode 100644 index 00000000..b4bda265 --- /dev/null +++ b/modules/distribution/src/core/resources/tenant/tenant-conf.json @@ -0,0 +1,109 @@ +{ + "EnableMonetization" : false, + "IsUnlimitedTierPaid" : false, + "ExtensionHandlerPosition": "bottom", + "RESTAPIScopes": { + "Scope": [ + { + "Name": "apim:api_publish", + "Roles": "admin,Internal/publisher" + }, + { + "Name": "apim:api_create", + "Roles": "admin,Internal/creator" + }, + { + "Name": "apim:api_view", + "Roles": "admin,Internal/publisher,Internal/creator" + }, + { + "Name": "apim:subscribe", + "Roles": "admin,Internal/subscriber" + }, + { + "Name": "apim:tier_view", + "Roles": "admin,Internal/publisher,Internal/creator" + }, + { + "Name": "apim:tier_manage", + "Roles": "admin" + }, + { + "Name": "apim:bl_view", + "Roles": "admin" + }, + { + "Name": "apim:bl_manage", + "Roles": "admin" + }, + { + "Name": "apim:subscription_view", + "Roles": "admin,Internal/creator" + }, + { + "Name": "apim:subscription_block", + "Roles": "admin,Internal/creator" + }, + { + "Name": "apim:mediation_policy_view", + "Roles": "admin" + }, + { + "Name": "apim:mediation_policy_create", + "Roles": "admin" + }, + { + "Name": "apim:api_workflow", + "Roles": "admin" + }, + { + "Name": "appm:publish", + "Roles": "admin,Internal/publisher" + }, + { + "Name": "appm:read", + "Roles": "admin,Internal/creator,Internal/publisher,Internal/subscriber,Internal/store-admin,Internal/store" + }, + { + "Name": "appm:create", + "Roles": "admin,Internal/creator" + }, + { + "Name": "appm:subscribe", + "Roles": "admin,Internal/subscriber" + }, + { + "Name": "appm:update", + "Roles": "admin,Internal/creator" + }, + { + "Name": "appm:administration", + "Roles": "admin" + } + ] + }, + "NotificationsEnabled":"false", + "Notifications":[{ + "Type":"new_api_version", + "Notifiers" :[{ + "Class":"org.wso2.carbon.apimgt.impl.notification.NewAPIVersionEmailNotifier", + "ClaimsRetrieverImplClass":"org.wso2.carbon.apimgt.impl.token.DefaultClaimsRetriever", + "Title": "Version $2 of $1 Released", + "Template": "

We’re happy to announce the arrival of the next major version $2 of $1 API which is now available in Our API Store.

Click here to Visit WSO2 API Store" + }] + } + ], + "DefaultRoles" : { + "PublisherRole" : { + "CreateOnTenantLoad" : true, + "RoleName" : "Internal/publisher" + }, + "CreatorRole" : { + "CreateOnTenantLoad" : true, + "RoleName" : "Internal/creator" + }, + "SubscriberRole" : { + "CreateOnTenantLoad" : true + } + } +} \ No newline at end of file diff --git a/modules/p2-profile/iot-core-profile/pom.xml b/modules/p2-profile/iot-core-profile/pom.xml index 2cfb7463..00954e3b 100644 --- a/modules/p2-profile/iot-core-profile/pom.xml +++ b/modules/p2-profile/iot-core-profile/pom.xml @@ -176,6 +176,9 @@ org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.mobile.windows.feature:${carbon.device.mgt.plugin.version} + + org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.androidsense.feature:${carbon.device.mgt.plugin.version} + @@ -465,6 +468,15 @@ org.wso2.carbon.store:org.wso2.carbon.social.feature:${carbon.store.version} + + org.wso2.carbon.appmgt:org.wso2.carbon.appmgt.oauth.feature:${appmgt.feature.version} + + + org.wso2.carbon.appmgt:org.wso2.carbon.appmgt.rest.api.store.feature:${appmgt.feature.version} + + + org.wso2.carbon.appmgt:org.wso2.carbon.appmgt.rest.api.publisher.feature:${appmgt.feature.version} + @@ -902,6 +914,18 @@ org.wso2.carbon.social.feature.group ${carbon.store.version} + + org.wso2.carbon.appmgt.rest.api.store.feature.group + ${appmgt.feature.version} + + + org.wso2.carbon.appmgt.rest.api.publisher.feature.group + ${appmgt.feature.version} + + + org.wso2.carbon.appmgt.oauth.feature.group + ${appmgt.feature.version} + @@ -997,6 +1021,10 @@ org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.adapter.feature.group @@ -1955,6 +1983,10 @@ org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.apimgt.gateway.feature.group ${carbon.api.mgt.version} @@ -2429,6 +2461,10 @@ org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.apimgt.gateway.feature.group ${carbon.api.mgt.version} @@ -2527,6 +2563,18 @@ org.wso2.carbon.appmgt.mdm.restconnector.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.appmgt.rest.api.store.feature.group + ${appmgt.feature.version} + + + org.wso2.carbon.appmgt.rest.api.publisher.feature.group + ${appmgt.feature.version} + + + org.wso2.carbon.appmgt.oauth.feature.group + ${appmgt.feature.version} + @@ -2638,6 +2686,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} @@ -3097,6 +3149,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} @@ -3322,6 +3378,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} @@ -3761,6 +3821,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} diff --git a/modules/scripts/mobile-qsg/pom.xml b/modules/scripts/mobile-qsg/pom.xml index 6fe429ec..017fd5c0 100644 --- a/modules/scripts/mobile-qsg/pom.xml +++ b/modules/scripts/mobile-qsg/pom.xml @@ -63,72 +63,6 @@ - - org.apache.maven.plugins - maven-antrun-plugin - - - download-appm-store.war - prepare-package - - run - - - - - - - - - download-appm-publisher.war - prepare-package - - run - - - - - - - - - download-appm-ouath-webapp.war - prepare-package - - run - - - - - - - - - download-appm-ouath-core.jar - prepare-package - - run - - - - - - - - - ${project.artifactId} From 475bd3ac843e50f9ccaac278c67df21f60e7dd2c Mon Sep 17 00:00:00 2001 From: ayyoob Date: Fri, 5 May 2017 01:55:19 +0530 Subject: [PATCH 2/3] added filter properties to pick the parent plugins version --- modules/distribution/pom.xml | 1 + .../src/core/plugins/plugins-deployer.xml | 46 +++++++++++-------- 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml index 3f0f6dc2..273f6383 100644 --- a/modules/distribution/pom.xml +++ b/modules/distribution/pom.xml @@ -777,6 +777,7 @@ ${basedir}/src/assembly/filter.properties + \ ${basedir}/src/assembly/bin.xml diff --git a/modules/distribution/src/core/plugins/plugins-deployer.xml b/modules/distribution/src/core/plugins/plugins-deployer.xml index 747e16cf..8aedca79 100644 --- a/modules/distribution/src/core/plugins/plugins-deployer.xml +++ b/modules/distribution/src/core/plugins/plugins-deployer.xml @@ -46,22 +46,19 @@ p2-repo-gen - file:${basedir}/target/p2-repo - file:${basedir}/target/p2-repo + file:\${basedir}/target/p2-repo + file:\${basedir}/target/p2-repo true true - org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.androidsense.feature:${carbon.device.mgt.plugin.version} + org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.arduino.feature:\${carbon.device.mgt.plugin.version} - org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.arduino.feature:${carbon.device.mgt.plugin.version} + org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.raspberrypi.feature:\${carbon.device.mgt.plugin.version} - org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.raspberrypi.feature:${carbon.device.mgt.plugin.version} - - - org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature:${carbon.device.mgt.plugin.version} + org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature:\${carbon.device.mgt.plugin.version} @@ -74,26 +71,22 @@ default - file:${basedir}/target/p2-repo - file:${basedir}/target/p2-repo - ${basedir}/../wso2/components + file:\${basedir}/target/p2-repo + file:\${basedir}/target/p2-repo + \${basedir}/../wso2/components false - - org.wso2.carbon.device.mgt.iot.androidsense.feature.group - ${carbon.device.mgt.plugin.version} - org.wso2.carbon.device.mgt.iot.arduino.feature.group - ${carbon.device.mgt.plugin.version} + \${carbon.device.mgt.plugin.version} org.wso2.carbon.device.mgt.iot.raspberrypi.feature.group - ${carbon.device.mgt.plugin.version} + \${carbon.device.mgt.plugin.version} org.wso2.carbon.device.mgt.iot.virtualfirealarm.feature.group - ${carbon.device.mgt.plugin.version} + \${carbon.device.mgt.plugin.version} @@ -110,11 +103,23 @@ package + + - + + + + + + + + + + + @@ -207,6 +212,7 @@ - 3.0.31 + + ${carbon.device.mgt.plugin.version} From 59d84129e15aa622c40f1dd8eb5eb114c71eac44 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Fri, 5 May 2017 03:02:50 +0530 Subject: [PATCH 3/3] updated component version --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 6cae8f3e..a2d47d1e 100644 --- a/pom.xml +++ b/pom.xml @@ -1513,7 +1513,7 @@ - 2.0.59 + 2.0.61 [2.0.0, 3.0.0) @@ -1521,7 +1521,7 @@ - 3.0.31 + 3.0.32 6.1.80