From 5539a8d6799772e648cfb5a948346827a0b309ba Mon Sep 17 00:00:00 2001 From: Saad Sahibjan Date: Mon, 15 Feb 2021 22:12:09 +0530 Subject: [PATCH] Add SMS mgt API feature --- .../io.entgra.sms.mgt.api.feature/pom.xml | 123 ++++++++++++++++++ .../src/main/resources/build.properties | 1 + .../src/main/resources/p2.inf | 3 + 3 files changed, 127 insertions(+) create mode 100644 features/sms-mgt/io.entgra.sms.mgt.api.feature/pom.xml create mode 100644 features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/build.properties create mode 100644 features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/p2.inf diff --git a/features/sms-mgt/io.entgra.sms.mgt.api.feature/pom.xml b/features/sms-mgt/io.entgra.sms.mgt.api.feature/pom.xml new file mode 100644 index 00000000000..976b42937cb --- /dev/null +++ b/features/sms-mgt/io.entgra.sms.mgt.api.feature/pom.xml @@ -0,0 +1,123 @@ + + + + + + + org.wso2.carbon.devicemgt + sms-mgt-feature + 4.1.12-SNAPSHOT + ../pom.xml + + + 4.0.0 + io.entgra.sms.mgt.api.feature + pom + 4.1.12-SNAPSHOT + Entgra IoT - SMS Management API Feature + https://entgra.io + This feature contains the APIs required for SMS Management + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + sms-mgt-copy + package + + copy + + + + + org.wso2.carbon.devicemgt + io.entgra.sms.mgt.api + ${project.version} + war + true + + ${project.build.directory}/maven-shared-archive-resources/webapps + + api#sms-mgt#v1.0.war + + + + + + + + org.apache.maven.plugins + maven-resources-plugin + + + copy-resources + generate-resources + + copy-resources + + + src/main/resources + + + resources + + build.properties + p2.inf + + + + + + + + + org.wso2.maven + carbon-p2-plugin + + + p2-feature-generation + package + + p2-feature-gen + + + io.entgra.sms.mgt.api + ../../../features/etc/feature.properties + + + + org.wso2.carbon.p2.category.type:server + + org.eclipse.equinox.p2.type.group:false + + + + + + + + + + + diff --git a/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/build.properties b/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/build.properties new file mode 100644 index 00000000000..9c86577d768 --- /dev/null +++ b/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/build.properties @@ -0,0 +1 @@ +custom = true diff --git a/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/p2.inf b/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/p2.inf new file mode 100644 index 00000000000..8ed8daa4699 --- /dev/null +++ b/features/sms-mgt/io.entgra.sms.mgt.api.feature/src/main/resources/p2.inf @@ -0,0 +1,3 @@ +instructions.configure = \ +org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\ +org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/io.entgra.sms.mgt.api_${feature.version}/webapps/api#sms-mgt#v1.0.war,target:${installFolder}/../../deployment/server/webapps/api#sms-mgt#v1.0.war,overwrite:true);\