Hi all, I created a new device type using cdmf-devicetype-archetype-master tool, and updated the file device-deployer.xml (used IoTS-M3 SNAPSHOT, and copied file org.wso2.carbon.device.mgt.iot_2.0.4.SNAPSHOT.jar into the repository/components/plugins folder) with correct info of my device type, but when I built the file "device-deployer.xml”, I got the following errors:
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Could not find artifact com.smartcloudex:com.smartcloudex.thermometer.feature:zip:1.0.0-SNAPSHOT in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) I found that the feature target file had been built (but I didn’t know why the version is 1.0-SNAPSHOT, and not 1.0.0-SNAPSHOT) in the feature folder of my device type, so I used following command to install it, successfully finished. mvn install:install-file -DgroupId=com.smartcloudex -DartifactId=com.smartcloudex.thermometer.feature -Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/Users/zhanwen/Documents/WSO2/IOT/wso2iots-1.0.0-SNAPSHOT/samples/thermometer/feature/feature/target/com.smartcloudex.thermometer.feature-1.0-SNAPSHOT.zip But when I executed the command “mvn clean install -f device-deployer.xml” again I got the following errors. Was there any mistake in my steps? Could anyone help me? Thanks. [INFO] [INFO] --- carbon-p2-plugin:1.5.3:p2-profile-gen (feature-install) @ devicetype-feature-installation --- [INFO] Running Equinox P2 Director Application [INFO] Command line: /bin/sh -c cd /Users/zhanwen/Documents/WSO2/IOT/wso2iots-1.0.0-SNAPSHOT && /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/bin/java -jar /Users/zhanwen/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar -nosplash -application org.eclipse.equinox.p2.director -metadataRepository file:/Users/zhanwen/Documents/WSO2/IOT/wso2iots-1.0.0-SNAPSHOT/samples/p2-repo -artifactRepository file:/Users/zhanwen/Documents/WSO2/IOT/wso2iots-1.0.0-SNAPSHOT/samples/p2-repo -profileProperties org.eclipse.update.install.features=true -installIU org.coffeeking.connectedcup.feature.group/1.9.2.SNAPSHOT,org.homeautomation.currentsensor.feature.group/1.9.2.SNAPSHOT,com.smartcloudex.feature.group/1.0.0.SNAPSHOT, -bundlepool repository/components -shared repository/components/p2 -destination repository/components/default -profile default -roaming Installation failed. The installable unit com.smartcloudex.feature.group/1.0.0.SNAPSHOT has not been found. Application failed, log file location: /Users/zhanwen/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1460350536316.log [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] WSO2 IoTS(Device Types) - Connected Cup Component .. SUCCESS [ 0.660 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup Component .. SUCCESS [ 0.025 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup Analytics capp SUCCESS [ 1.296 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup CDMF Plugin SUCCESS [ 2.029 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup Controller Service SUCCESS [ 2.668 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup Manager Service SUCCESS [ 1.366 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup Agent Web app SUCCESS [ 1.292 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup UI ......... SUCCESS [ 0.137 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup Feature Parent SUCCESS [ 0.017 s] [INFO] WSO2 IoTS(Device Types) - Connected Cup Feature .... SUCCESS [ 2.407 s] [INFO] org.homeautomation.currentsensor.analytics ......... SUCCESS [ 0.110 s] [INFO] org.homeautomation.currentsensor.plugin for CDMF ... SUCCESS [ 0.801 s] [INFO] org.homeautomation.currentsensor.controller API .... SUCCESS [ 1.831 s] [INFO] org.homeautomation.currentsensor.manager ........... SUCCESS [ 1.488 s] [INFO] org.homeautomation.currentsensor.agent ............. SUCCESS [ 0.057 s] [INFO] org.homeautomation.currentsensor.ui ................ SUCCESS [ 0.097 s] [INFO] currentsensor ...................................... SUCCESS [ 0.015 s] [INFO] WSO2 IoTS(Device Types) - Current Sensor Component . SUCCESS [ 0.018 s] [INFO] feature ............................................ SUCCESS [ 0.015 s] [INFO] org.homeautomation.currentsensor.feature ........... SUCCESS [ 1.742 s] [INFO] thermometer ........................................ SUCCESS [ 0.015 s] [INFO] thermometer-component .............................. SUCCESS [ 0.018 s] [INFO] com.smartcloudex.thermometer.plugin ................ SUCCESS [ 0.795 s] [INFO] com.smartcloudex.thermometer.controller ............ SUCCESS [ 1.297 s] [INFO] com.smartcloudex.thermometer.manager ............... SUCCESS [ 0.815 s] [INFO] com.smartcloudex.thermometer.analytics ............. SUCCESS [ 0.226 s] [INFO] com.smartcloudex.thermometer.ui .................... SUCCESS [ 0.044 s] [INFO] thermometer-feature ................................ SUCCESS [ 0.010 s] [INFO] com.smartcloudex.thermometer.feature ............... SUCCESS [ 0.673 s] [INFO] Creating custom distribution ....................... FAILURE [ 5.759 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 28.776 s [INFO] Finished at: 2016-04-11T12:55:38+08:00 [INFO] Final Memory: 127M/2289M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen (feature-install) on project devicetype-feature-installation: P2 publisher return code was 13 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :devicetype-feature-installation ------ Zhanwen Zhou (Jason)
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
