Hi Shabir/Geesara, Is that right to select 4 in below step? What’s the difference between 2 and 4 archetype selection?
$ mvn archetype:generate -DarchetypeCatalog=local Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0 [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: local -> org.wso2.iot:mdm-android-agent-archetype (Creates a MDM-Android agent project) 2: local -> cdmf.devicetype:cdmf-devicetype-archetype (WSO2 CDMF Device Type Archetype) 3: local -> org.wso2.mdm:mdm-android-agent-archetype (Creates a MDM-Android agent project) 4: local -> org.wso2.cdmf.devicetype:cdmf-devicetype-archetype (WSO2 CDMF Device Type Archetype) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 4 ------ Zhanwen Zhou (Jason), 在 2016年4月11日,下午3:08,Shabir Mohamed <[email protected]> 写道: > Hi Zhou, > > If you still get any additional errors, please do send us the errors printed > in the error logs at: > /Users/zhanwen/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/ > > so we could deduce why the device-deployer actually failed. > > Regards > > ------------------------------------- > Shabir Mohamed > Software Engineer > WSO2 Inc.; http://wso2.com > Email: [email protected] > Mobile: +94 77 3516019 | +94 71 6583393 > > On Mon, Apr 11, 2016 at 12:27 PM, Geesara Prathap <[email protected]> wrote: > Hi Zhou, > > copied file org.wso2.carbon.device.mgt.iot_2.0.4.SNAPSHOT.jar into the > repository/components/plugins folder) > > No need to copy any of *.jar files manually. All necessary *jar files are > copied by maven archetype when building device type plugin. > > 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. > > the default version is set to 1.0-SNAPSHOT when building new device type > plugin. If you need you can change as you require. But please define correct > version, groupid and artifactId in device-deploye.xml as mention here[1]. > > > > 1. https://github.com/GPrathap/cdmf-devicetype-archetype/tree/IoTS-1.0.0-M3 > (branch IoTS-1.0.0-M3) > > Thanks, > Geesara > > On Mon, Apr 11, 2016 at 12:04 PM, Charitha Goonetilleke <[email protected]> > wrote: > [Adding Ayyoob & Geesara to the thread] > > Hi Zhou, > > Since we are working with next milestone release, archtype in product-iots > master branch will not generate compatible device type plugin for M3 pack. It > is the reason for above mentioned issues. So please checkout M3 compatible > archtype from this link[2] and try to regenerate your device type with it. > > Also, with given M3 compatible archtype, you don't want to copy any jar file > to plugins directory by your self. > > [1] > https://github.com/wso2/carbon-device-mgt-plugins/tree/IoTS-1.0.0-M3/components/device-mgt-iot > [2] > https://github.com/wso2/product-iots/tree/master/modules/tools/cdmf-devicetype-archetype > [3] https://github.com/GPrathap/cdmf-devicetype-archetype/tree/IoTS-1.0.0-M3 > > Thanks & Regards, > /charithag > > > On Mon, Apr 11, 2016 at 11:10 AM, 云展智创 <[email protected]> wrote: > 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 > > > > > -- > Charitha Goonetilleke > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 77 751 3669 > Twitter:@CharithaWs, fb: charithag, linkedin: charithag > > > > -- > Geesara Prathap Kulathunga > Software Engineer > WSO2 Inc; http://wso2.com > Mobile : +940772684174 > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
