Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用Git安装BuildTools时出现问题_Java_Git_Maven - Fatal编程技术网

Java 使用Git安装BuildTools时出现问题

Java 使用Git安装BuildTools时出现问题,java,git,maven,Java,Git,Maven,试图下载名为BuildTools的东西时,在页面下方找到了链接。我的问题是,在他们的教程之后,我打开git(这个程序允许我通过终端访问我的文件),并按照网站的要求运行命令Java-jarbuildtools.jar。安装结束时几乎完美,但在接近结束时失败。我已经看了错误消息,但我似乎无法理解它的头绪。还有人明白吗 [INFO] BUILD FAILURE [INFO] ----------------------------------------------------------------

试图下载名为BuildTools的东西时,在页面下方找到了链接。我的问题是,在他们的教程之后,我打开git(这个程序允许我通过终端访问我的文件),并按照网站的要求运行命令
Java-jarbuildtools.jar
。安装结束时几乎完美,但在接近结束时失败。我已经看了错误消息,但我似乎无法理解它的头绪。还有人明白吗

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:24 min
[INFO] Finished at: 2018-04-06T20:31:54+01:00
[INFO] Final Memory: 13M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.1.0:shade (default) on project bukkit: Error creating shaded jar: Unexpected end of ZLIB input stream -> [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
Exception in thread "main" java.lang.RuntimeException: Error running command, return status !=0: [sh, C:\Users\Ben\Documents\Programming Stuff\BuildTools\apache-maven-3.5.0/bin/mvn, clean, install]
        at org.spigotmc.builder.Builder.runProcess0(Builder.java:639)
        at org.spigotmc.builder.Builder.runProcess(Builder.java:597)
        at org.spigotmc.builder.Builder.main(Builder.java:462)
        at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:29)
我看过它所暗示的事情,但老实说,我也不太理解它们。有人能帮我吗

非常感谢,, 饼干

编辑:构建失败之前的位是:

Results :

Tests run: 924, Failures: 0, Errors: 0, Skipped: 3

[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ bukkit ---
[INFO] Building jar: C:\Users\Ben\Documents\Programming Stuff\BuildTools\Bukkit\target\bukkit-1.12.2-R0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-shade-plugin:3.1.0:shade (default) @ bukkit ---
[INFO] Including commons-lang:commons-lang:jar:2.6 in the shaded jar.
[INFO] Including com.googlecode.json-simple:json-simple:jar:1.1.1 in the shaded jar.
[INFO] Including com.google.guava:guava:jar:21.0 in the shaded jar.
[INFO] Including com.google.code.gson:gson:jar:2.8.0 in the shaded jar.
[INFO] Including org.yaml:snakeyaml:jar:1.19 in the shaded jar.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

BuildTools.jar使用ApacheMaven通过Maven命令
mvn clean install
为您构建一些东西。在构建过程中,执行
maven shade plugin
的目标时出现故障。能否在“构建失败”之前显示日志?请使用最新版本的maven shade插件(3.1.1)尝试构建。错误消息显示已损坏的jar文件有一个改进。。