From 4c2eeb4b2abc89487d4e8eea7858e884e1b7ec95 Mon Sep 17 00:00:00 2001 From: GPrathap Date: Thu, 25 Feb 2016 23:52:21 +0530 Subject: [PATCH] Fix for JIRA IOTS-80 --- modules/samples/installer/device-deployer.xml | 7 +++--- .../tools/cdmf-devicetype-archetype/README.md | 24 ++++++++++++------- .../tools/cdmf-devicetype-archetype/pom.xml | 4 ++-- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/modules/samples/installer/device-deployer.xml b/modules/samples/installer/device-deployer.xml index 583a9282..efb3575e 100644 --- a/modules/samples/installer/device-deployer.xml +++ b/modules/samples/installer/device-deployer.xml @@ -32,7 +32,7 @@ http://wso2.org - + samples/connectedcup samples/currentsensor @@ -43,7 +43,6 @@ org.wso2.maven carbon-p2-plugin 1.5.3 - 2-p2-repo-generation @@ -59,7 +58,7 @@ - + org.wso2.carbon.devicemgt-plugins:org.coffeeking.connectedcup.feature:2.0.4-SNAPSHOT @@ -89,7 +88,7 @@ repository/components true - + org.coffeeking.connectedcup.feature.group 2.0.4-SNAPSHOT diff --git a/modules/tools/cdmf-devicetype-archetype/README.md b/modules/tools/cdmf-devicetype-archetype/README.md index c72d2e90..de25c9c9 100644 --- a/modules/tools/cdmf-devicetype-archetype/README.md +++ b/modules/tools/cdmf-devicetype-archetype/README.md @@ -1,16 +1,16 @@ # cdmf-devicetype-archetype To install this maven archetype - go to this folder cdmf-devicetype-archetype + go to this folder `cdmf-devicetype-archetype` mvn clean install To create new project - go to this folder /wso2iots-1.0.0-SNAPSHOT/samples + go to this folder `/wso2iots-1.0.0-SNAPSHOT/samples` mvn archetype:generate -DarchetypeCatalog=local -Then select the cdmf.devicetype:cdmf-devicetype-archetype as new archetype. Then you need to provide groupId, artifactId, +Then select the `cdmf.devicetype:cdmf-devicetype-archetype` as new archetype. Then you need to provide groupId, artifactId, version, packaging, name of your device type and name for sensor as shown bellow. Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 3 @@ -30,20 +30,28 @@ version, packaging, name of your device type and name for sensor as shown bellow To install sample app into IOTS - open '`device-deployer.xml` which is located in wso2iots-1.0.0-SNAPSHOT directory - Under featureArtifacts tag add feature artifact definition as below + open `device-deployer.xml` which is located in wso2iots-1.0.0-SNAPSHOT directory + +Under modules tag add name of sample which you created as module as below + + samples/safeLocker + +Under featureArtifacts tag add feature artifact definition as below org.homeautomation:org.homeautomation.safeLocker.feature:1.0.0-SNAPSHOT - Under features tag add feature group definition as below +Under features tag add feature group definition as below org.homeautomation.safeLocker.feature.group 1.0.0-SNAPSHOT - mvn clean install -f device-deployer.xml - +Finally to deploy sample device type into IoT Server + + mvn clean install -f device-deployer.xml + +Note: This command should be executed place where `device-deployer.xml` is located diff --git a/modules/tools/cdmf-devicetype-archetype/pom.xml b/modules/tools/cdmf-devicetype-archetype/pom.xml index d9255a41..4f4cbfb8 100644 --- a/modules/tools/cdmf-devicetype-archetype/pom.xml +++ b/modules/tools/cdmf-devicetype-archetype/pom.xml @@ -28,8 +28,8 @@ cdmf.devicetype cdmf-devicetype-archetype 1.0.0-SNAPSHOT - Archetype of WSO2 CDMF Device Type - Archetype of WSO2 CDMF Device Type + WSO2 CDMF Device Type Archetype + WSO2 CDMF Device Type Archetype maven-archetype WSO2 Inc.