The forked VM terminated without properly saying goodbye. VM crash or System.exit called?

来源:互联网 发布:windows程序设计算c 编辑:程序博客网 时间:2024/06/09 16:04

一开始解决方式:跳过test执行install

'D:\Myjdk' 不是内部或外部命令,也不是可运行的程序或批处理文件。系统找不到指定的路径。

最后解决方式是:项目路径存在中文路径,'D:\Myjdk&jre'是我的jdk,jre安装路径,可能IDEA无法识别,报了上面一段错误都改为英文路径,去掉&,就可以install 不用跳过测试

D:\myIDEAworkspace\shoppingmail\shop-parent>mvn install
[INFO] Scanning for projects…
[INFO] ————————————————————————
[INFO] Reactor Build Order:
[INFO]
[INFO] shop-parent
[INFO] shop-core
[INFO] shop-www
[INFO] shop-dao
[INFO] shop-service
[INFO] shop-web Maven Webapp
[INFO]
[INFO] ————————————————————————
[INFO] Building shop-parent 1.0-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] — maven-install-plugin:2.4:install (default-install) @ shop-parent —
[INFO] Installing D:\myIDEAworkspace\shoppingmail\shop-parent\pom.xml to D:\java\m2\repository\com\shop\shop-parent\1.0-SNAPSHOT\shop-parent-1.0-SNAPSHOT.pom
[INFO]
[INFO] ————————————————————————
[INFO] Building shop-core 1.0-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ shop-core —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\myIDEAworkspace\shoppingmail\shop-parent\shop-core\src\main\resources\dev
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ shop-core —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ shop-core —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\myIDEAworkspace\shoppingmail\shop-parent\shop-core\src\test\resources
[INFO]
[INFO] — maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ shop-core —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-surefire-plugin:2.19.1:test (default-test) @ shop-core —
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit3/2.19.1/surefire-junit3-2.19.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit3/2.19.1/surefire-junit3-2.19.1.pom (3 KB at 0.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.19.1/surefire-providers-2.19.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.19.1/surefire-providers-2.19.1.pom (3 KB at 2.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit3/2.19.1/surefire-junit3-2.19.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit3/2.19.1/surefire-junit3-2.19.1.jar (26 KB at 12.6 KB/sec)


T E S T S

‘D:\Myjdk’ 不是内部或外部命令,也不是可运行的程序
或批处理文件。
系统找不到指定的路径。

Results :

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

[INFO] ————————————————————————
[INFO] Reactor Summary:
[INFO]
[INFO] shop-parent …………………………………. SUCCESS [ 0.345 s]
[INFO] shop-core …………………………………… FAILURE [ 7.805 s]
[INFO] shop-www ……………………………………. SKIPPED
[INFO] shop-dao ……………………………………. SKIPPED
[INFO] shop-service ………………………………… SKIPPED
[INFO] shop-web Maven Webapp ………………………… SKIPPED
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 8.352 s
[INFO] Finished at: 2017-07-12T23:35:19+08:00
[INFO] Final Memory: 18M/166M
[INFO] ————————————————————————
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project shop-core: Execution default-test of goal o
rg.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C “D:\Myjdk&jre\Java\jdk1.7.0_79\jre\bin\java -jar D:\myIDEAworkspace\shoppingmail\shop-parent\shop-core\target\surefire\surefi
rebooter379792440176013016.jar D:\myIDEAworkspace\shoppingmail\shop-parent\shop-core\target\surefire\surefire479971141881306841tmp D:\myIDEAworkspace\shoppingm
ail\shop-parent\shop-core\target\surefire\surefire_08246518820313632432tmp”
[ERROR] -> [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/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :shop-core

问题原因:环境的原因

解决方案:项目路径纯英文,jdk路径删除无法识别的字符

其他报错原因及解决方式:

https://www.oschina.net/question/2358326_236665

跳过测试,执行install

http://blog.csdn.net/zhglance/article/details/53695653

 System.exit(0); 造成了vm提前退出,去掉之后再次执行maven install正常。