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/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index bcf44de7..7dc88929 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 @@ -1332,6 +1324,12 @@ true 644 + + src/core/resources/tenant/tenant-conf.json + ${pom.artifactId}-${pom.version}/repository/resources/tenant + true + 644 + @@ -1430,15 +1428,6 @@ true 644 - - - - ../p2-profile/iot-core-profile/target/wso2carbon-core-${carbon.kernel.version}/wso2/resources/devicetypes/device_management/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 @@ -1565,12 +1554,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/plugins/plugins-deployer.xml b/modules/distribution/src/core/plugins/plugins-deployer.xml index c4116503..21e7d95e 100644 --- a/modules/distribution/src/core/plugins/plugins-deployer.xml +++ b/modules/distribution/src/core/plugins/plugins-deployer.xml @@ -50,8 +50,8 @@ 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 @@ -97,9 +97,9 @@ 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 @@ -152,9 +152,9 @@ device-manager - 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 @@ -191,9 +191,9 @@ device-backend - 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 @@ -304,6 +304,7 @@ - 3.0.33 + + ${carbon.device.mgt.plugin.version} 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 30b1a20c..9cb1c4e6 100644 --- a/modules/p2-profile/iot-core-profile/pom.xml +++ b/modules/p2-profile/iot-core-profile/pom.xml @@ -175,6 +175,12 @@ 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.ui.feature:${carbon.device.mgt.plugin.version} + + + org.wso2.carbon.devicemgt-plugins:org.wso2.carbon.device.mgt.iot.androidsense.backend.feature:${carbon.device.mgt.plugin.version} @@ -465,6 +471,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} + @@ -886,6 +901,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} + @@ -980,6 +1007,14 @@ org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} + + + org.wso2.carbon.device.mgt.iot.androidsense.ui.feature.group + ${carbon.device.mgt.plugin.version} + + + org.wso2.carbon.device.mgt.iot.androidsense.backend.feature.group + ${carbon.device.mgt.plugin.version} @@ -2006,6 +2041,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} @@ -2104,6 +2143,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} + @@ -2215,6 +2266,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.ui.feature.group + ${carbon.device.mgt.plugin.version} + org.wso2.carbon.device.mgt.mobile.windows.feature.group ${carbon.device.mgt.plugin.version} @@ -2904,6 +2959,10 @@ org.wso2.carbon.device.mgt.mobile.android.feature.group ${carbon.device.mgt.plugin.version} + + org.wso2.carbon.device.mgt.iot.androidsense.backend.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} diff --git a/pom.xml b/pom.xml index d1810fb0..673b5716 100644 --- a/pom.xml +++ b/pom.xml @@ -1513,7 +1513,7 @@ - 2.0.59 + 2.0.61 [2.0.0, 3.0.0)