注册arduino设备类型

时间:2017-11-27 09:29:44

标签: wso2 wso2iot

我在WSO2 IoT Server文档中遵循了本教程,以便注册arduino设备类型:https://docs.wso2.com/display/IoTS310/Arduino

执行此行时出错:" mvn clean install -f device-plugins-deployer.xml"

[ERROR] P2 publisher return code was 13
org.apache.maven.plugin.MojoFailureException: P2 publisher return code was 13
    at org.wso2.maven.p2.RepositoryGenMojo.generateRepository(RepositoryGenMojo.java:255)
    at org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:204)
    at org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

日志文件给我这个:

!SESSION 2017-11-27 10:19:29.039 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_152
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=fr_FR
Framework arguments:  -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source /home/bacor/workspace/wso2iot-3.1.0-update1/wso2/analytics/samples/device-plugins/target/tmp.1511774368842/featureExtract -metadataRepository file:/home/bacor/workspace/wso2iot-3.1.0-update1/wso2/analytics/samples/device-plugins/target/p2-repo -metadataRepositoryName analytics-devicetype-feature-installation -artifactRepository file:/home/bacor/workspace/wso2iot-3.1.0-update1/wso2/analytics/samples/device-plugins/target/p2-repo -artifactRepositoryName analytics-devicetype-feature-installation -publishArtifacts -publishArtifactRepository -compress -append
Command-line arguments:  -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source /home/bacor/workspace/wso2iot-3.1.0-update1/wso2/analytics/samples/device-plugins/target/tmp.1511774368842/featureExtract -metadataRepository file:/home/bacor/workspace/wso2iot-3.1.0-update1/wso2/analytics/samples/device-plugins/target/p2-repo -metadataRepositoryName analytics-devicetype-feature-installation -artifactRepository file:/home/bacor/workspace/wso2iot-3.1.0-update1/wso2/analytics/samples/device-plugins/target/p2-repo -artifactRepositoryName analytics-devicetype-feature-installation -publishArtifacts -publishArtifactRepository -compress -append

!ENTRY org.eclipse.osgi 4 0 2017-11-27 10:19:29.312
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

似乎" config.ini"中缺少一些东西。文件。我已经将这个文件搜索到了我的WSO2存储库中,我得到了6" config.ini"文件位于" wso2 / component / [component_name] / configuration /"。

我的问题是" config.ini"我应该修改文件,我应该修改什么才能使其正常工作?

我试图添加这一行" org.eclipse.core.runtime@start"到每个" config.ini"中的osgi.bundle行但它不起作用

0 个答案:

没有答案
相关问题