mvn clean package报错
来源:5-3 命令行压测上

慕工程1148982
2019-02-18
mvn clean package报错
mvn clean package -Dmaven.test.skip=true也是报错
打war包
D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1>
D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1>mvn clean package -Dmaven.test.skip=true
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building miaosha 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-clean-plugin:2.6.1:clean (default-clean) @ miaosha —
[INFO] Deleting D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1\target
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ miaosha —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1\src\main\resources
[INFO] skip non existing resourceDirectory D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1\src\main\resources
[INFO]
[INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ miaosha —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 60 source files to D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.882 s
[INFO] Finished at: 2019-02-18T17:44:51+08:00
[INFO] Final Memory: 19M/212M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project miaosha: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[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/MojoFailureException
D:\eclipseworkspace\TestingWorkspace008\TestingWorkspace008\miaosha_1>
1回答
-
若鱼1919
2019-02-19
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
没有配置好java的环境变量
00
相似问题