为了注册 arduino 设备类型,我遵循了 WSO2 IoT Server 文档中的本教程: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 存储库中,并且在“wso2/component/[component_name]/configuration/”中有 6 个“config.ini”文件。
我的问题是我应该修改什么“config.ini”文件,我应该修改什么才能使其工作?
我试图将这一行“org.eclipse.core.runtime@start”添加到每个“config.ini”中的 osgi.bundle 行,但它不起作用