构建智能家居仪表板源代码失败

问题描述 投票:0回答:1

我正在以下URL进行README.md过程,但是在编译时,出现以下错误消息,无法继续。https://github.com/actions-on-google/smart-home-dashboard

[ERROR] Failed to execute goal
org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile
(default) on project dashboard: An error occurred while invoking
protoc.: Error while executing process. Cannot run program
"C:\test\target\protoc-plugins\protoc-3.5.1-1-windows-x86_64.exe":
CreateProcess error=206, The filename or extension is too long ->
[Help 1]

我将源代码放在C驱动器附近,但是没有解决。如果有人知道如何解决,您能告诉我如何解决吗?


OS:Windows 10

Result of command line:

C:\test>mvn compile

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective
model for com.google.homegraph:dashboard:war:0.1.0-SNAPSHOT

[WARNING]
'dependencies.dependency.(groupId:artifactId:type:classifier)' must be
unique: com.googlecode.objectify:objectify:jar -> duplicate
declaration of version 5.1.22 @ line 164, column 15

[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique
but found duplicate declaration of plugin
org.apache.maven.plugins:maven-war-plugin @ line 304, column 13

[WARNING]

[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer
support building such malformed projects.

[WARNING]

[INFO]
------------------------------------------------------------------------

[INFO] Detecting the operating system and CPU architecture

[INFO]
------------------------------------------------------------------------

[INFO] os.detected.name: windows

[INFO] os.detected.arch: x86_64

[INFO] os.detected.version: 10.0

[INFO] os.detected.version.major: 10

[INFO] os.detected.version.minor: 0

[INFO] os.detected.classifier: windows-x86_64

[WARNING] The project
com.google.homegraph:dashboard:war:0.1.0-SNAPSHOT uses prerequisites
which is  only intended for maven-plugin projects but not for non
maven-plugin projects. For such purposes you should use the
maven-enforcer-plugin. See
https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html

[INFO]

[INFO] -------------------< com.google.homegraph:dashboard >-------------------

[INFO] Building dashboard 0.1.0-SNAPSHOT

[INFO] --------------------------------[ war ]---------------------------------

[INFO]

[INFO] --- protobuf-maven-plugin:0.5.0:compile (default) @ dashboard ---

[INFO] Compiling 1579 proto file(s) to
C:\test\target\generated-sources\protobuf\java

[INFO]
------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Total time:  1.583 s

[INFO] Finished at: 2019-10-22T18:03:49+09:00

[INFO]
------------------------------------------------------------------------

[ERROR] Failed to execute goal
org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile
(default) on project dashboard: An error occurred while invoking
protoc.: Error while executing process. Cannot run program
"C:\test\target\protoc-plugins\protoc-3.5.1-1-windows-x86_64.exe":
CreateProcess error=206, The filename or extension is too long ->
[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
java maven actions-on-google google-smart-home
1个回答
0
投票

对不起,看来我的程序是错误的。

我不必手动执行README.md中的“从源构建”字段,我在此步骤中复制了多余的文件。在工作开始时进行编译时会自动添加它。最后,我能够在以下环境中进行编译。

OS:Linux(CentOS7)

maven版本:3.3.9(我将其与pom.xml中编写的版本匹配。]

© www.soinside.com 2019 - 2024. All rights reserved.