Hi Siddheshwar, Thank you very much for trying out WSO2 IoT Server.
This is an issue with Java 8. Please replace the pom file in *samples/connectedcup/components/plugin* with the attached file. Thanks and Regards, Menaka On Mon, Jan 30, 2017 at 12:39 PM, Siddheshwar Borwandkar < siddh...@infrarootsolutions.com> wrote: > i working on *connectedcup* sample . > when i run "*mvn clean install -f samples-deployer.xml*" > > it return build failure. > > > > [INFO] ------------------------------------------------------------ > ------------ > [INFO] Building WSO2 IoTS(Device Types) - Connected Cup CDMF Plugin 1.0.0 > [INFO] ------------------------------------------------------------ > ------------ > [INFO] > [INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ > org.coffeeking.connectedcup.plugin --- > [INFO] Deleting /infralabs/servers/wso2iot-3.0.0/samples/connectedcup/ > component/plugin/target > [INFO] > [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ > org.coffeeking.connectedcup.plugin --- > [INFO] > [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ > org.coffeeking.connectedcup.plugin --- > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered > resources, i.e. build is platform dependent! > [INFO] skip non existing resourceDirectory /infralabs/servers/wso2iot-3. > 0.0/samples/connectedcup/component/plugin/src/main/resources > [INFO] Copying 3 resources > [INFO] > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ > org.coffeeking.connectedcup.plugin --- > [WARNING] File encoding has not been set, using platform encoding UTF-8, > i.e. build is platform dependent! > [INFO] Compiling 9 source files to /infralabs/servers/wso2iot-3. > 0.0/samples/connectedcup/component/plugin/target/classes > [INFO] > [INFO] --- maven-scr-plugin:1.7.2:scr (generate-scr-scrdescriptor) @ > org.coffeeking.connectedcup.plugin --- > [WARNING] Class > org.coffeeking.connectedcup.plugin.internal.ConnectedCupServiceComponent > is using deprecated javadoc tags at file:/infralabs/servers/ > wso2iot-3.0.0/samples/connectedcup/component/plugin/ > src/main/java/org/coffeeking/connectedcup/plugin/internal/ > ConnectedCupServiceComponent.java:30 > [WARNING] It is highly recommended to fix these problems, as future > versions might not support these features anymore. > [INFO] Generating 2 MetaType Descriptors to /infralabs/servers/wso2iot-3. > 0.0/samples/connectedcup/component/plugin/target/scr- > plugin-generated/OSGI-INF/metatype/metatype.xml > [INFO] Writing abstract service descriptor /infralabs/servers/wso2iot-3. > 0.0/samples/connectedcup/component/plugin/target/scr- > plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml with 1 entries. > [INFO] Generating 1 Service Component Descriptors to > /infralabs/servers/wso2iot-3.0.0/samples/connectedcup/ > component/plugin/target/scr-plugin-generated/OSGI-INF/ > serviceComponents.xml > [INFO] > [INFO] --- maven-resources-plugin:2.7:testResources > (default-testResources) @ org.coffeeking.connectedcup.plugin --- > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered > resources, i.e. build is platform dependent! > [INFO] skip non existing resourceDirectory /infralabs/servers/wso2iot-3. > 0.0/samples/connectedcup/component/plugin/src/test/resources > [INFO] Copying 3 resources > [INFO] > [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) > @ org.coffeeking.connectedcup.plugin --- > [INFO] No sources to compile > [INFO] > [INFO] --- maven-surefire-plugin:2.18:test (default-test) @ > org.coffeeking.connectedcup.plugin --- > [INFO] > [INFO] --- maven-bundle-plugin:1.4.0:bundle (default-bundle) @ > org.coffeeking.connectedcup.plugin --- > [WARNING] Warning building bundle org.coffeeking:org.coffeeking. > connectedcup.plugin:bundle:1.0.0 : Did not find matching referal for > javax.xml.bind.* > [WARNING] Warning building bundle org.coffeeking:org.coffeeking. > connectedcup.plugin:bundle:1.0.0 : Did not find matching referal for > javax.xml.bind.annotation.* > [WARNING] Warning building bundle org.coffeeking:org.coffeeking. > connectedcup.plugin:bundle:1.0.0 : Did not find matching referal for > javax.xml.parsers.* > [WARNING] Warning building bundle org.coffeeking:org.coffeeking. > connectedcup.plugin:bundle:1.0.0 : Did not find matching referal for > org.wso2.carbon.context.* > [WARNING] Warning building bundle org.coffeeking:org.coffeeking. > connectedcup.plugin:bundle:1.0.0 : Importing packages that are never > refered to by any class on the Bundle-Classpath[Jar:dot]: [javax.net, > javax.net.ssl, org.w3c.dom, org.wso2.carbon.ndatasource.core]. > > *[ERROR] Error building bundle > org.coffeeking:org.coffeeking.connectedcup.plugin:bundle:1.0.0 : Unresolved > references to [org.wso2.carbon.base] by class(es) on the > Bundle-Classpath[Jar:dot]: > [org/coffeeking/connectedcup/plugin/impl/ConnectedCupManagerService.class]* > *[ERROR] Error(s) found in bundle configuration* > [INFO] ------------------------------------------------------------ > ------------ > [INFO] Reactor Summary: > [INFO] > [INFO] WSO2 IoTS(Device Types) - Connected Cup Component . SUCCESS [0.730s] > [INFO] WSO2 IoTS(Device Types) - Connected Cup Component . SUCCESS [0.036s] > [INFO] WSO2 IoTS(Device Types) - Connected Cup Analytics capp SUCCESS > [1.028s] > *[INFO] WSO2 IoTS(Device Types) - Connected Cup CDMF Plugin FAILURE > [3.423s]* > [INFO] WSO2 IoTS(Device Types) - Connected Cup API ....... SKIPPED > [INFO] WSO2 IoTS(Device Types) - Connected Cup Agent Web app SKIPPED > [INFO] WSO2 IoTS(Device Types) - Connected Cup UI ........ SKIPPED > [INFO] WSO2 IoTS(Device Types) - Connected Cup Feature Parent SKIPPED > [INFO] WSO2 IoTS(Device Types) - Connected Cup Feature ... SKIPPED > [INFO] Creating custom distribution ...................... SKIPPED > [INFO] ------------------------------------------------------------ > ------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------ > ------------ > [INFO] Total time: 5.766s > [INFO] Finished at: Mon Jan 30 12:15:17 IST 2017 > [INFO] Final Memory: 33M/297M > [INFO] ------------------------------------------------------------ > ------------ > *[ERROR] Failed to execute goal > org.apache.felix:maven-bundle-plugin:1.4.0:bundle (default-bundle) on > project org.coffeeking.connectedcup.plugin: Error(s) found in bundle > configuration -> [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 > <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 :org.coffeeking.connectedcup.plugin* > > > > > > *please guide me .* > > *thank you* > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Menaka Jayawardena* *Software Engineer - WSO2 Inc* *Tel : 071 350 5470* *LinkedIn: https://lk.linkedin.com/in/menakajayawardena <https://lk.linkedin.com/in/menakajayawardena>* *Blog: https://menakamadushanka.wordpress.com/ <https://menakamadushanka.wordpress.com/>*
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. ~ ~ WSO2 Inc. licenses this file to you under the Apache License, ~ Version 2.0 (the "License"); you may not use this file except ~ in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under the License. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>device-mgt-iot-connectedcup</artifactId> <groupId>org.coffeeking</groupId> <version>1.0.0</version> <relativePath>../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>org.coffeeking.connectedcup.plugin</artifactId> <version>1.0.0</version> <packaging>bundle</packaging> <name>WSO2 IoTS(Device Types) - Connected Cup CDMF Plugin</name> <description>WSO2 IoTS(Device Types) - Connected Cup CDMF Plugin</description> <url>http://wso2.org</url> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-scr-plugin</artifactId> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.7</source> <target>1.7</target> </configuration> <version>2.3.2</version> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>1.4.0</version> <extensions>true</extensions> <configuration> <instructions> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Version>${carbon.device.mgt.plugin.version}</Bundle-Version> <Bundle-Description>IoT Server Impl Bundle</Bundle-Description> <Private-Package>org.coffeeking.connectedcup.plugin.internal</Private-Package> <Import-Package> org.osgi.framework, org.osgi.service.component, org.apache.commons.logging, javax.xml.bind.*;resolution:=optional, javax.naming;resolution:=optional, javax.sql;resolution:=optional, javax.xml.bind.annotation.*;resolution:=optional, javax.net;resolution:=optional, javax.net.ssl;resolution:=optional, org.w3c.dom;resolution:=optional, org.wso2.carbon.device.mgt.common.*, org.wso2.carbon.device.mgt.common, org.wso2.carbon.context.*, org.wso2.carbon.base.*, org.wso2.carbon.ndatasource.core, javax.xml.parsers.*;resolution:=optional </Import-Package> <Export-Package> !org.coffeeking.connectedcup.plugin.internal, org.coffeeking.connectedcup.plugin.* </Export-Package> </instructions> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.eclipse.osgi</groupId> <artifactId>org.eclipse.osgi</artifactId> </dependency> <dependency> <groupId>org.eclipse.osgi</groupId> <artifactId>org.eclipse.osgi.services</artifactId> </dependency> <dependency> <groupId>org.wso2.carbon</groupId> <artifactId>org.wso2.carbon.logging</artifactId> </dependency> <dependency> <groupId>org.wso2.carbon.devicemgt</groupId> <artifactId>org.wso2.carbon.device.mgt.common</artifactId> </dependency> <dependency> <groupId>org.wso2.carbon</groupId> <artifactId>org.wso2.carbon.ndatasource.core</artifactId> </dependency> </dependencies> </project>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev