java環(huán)境是yum?install?-y?java?命令安裝的,版本是1.8,jenkins部署報(bào)下面的錯(cuò)誤
[INFO]?---?maven-compiler-plugin:2.5.1:compile?(default-compile)?@?order?---
[INFO]?Compiling?9?source?files?to?/root/.jenkins/workspace/DeployOrder/order/target/classes
[INFO]?------------------------------------------------------------------------
[INFO]?BUILD?FAILURE
[INFO]?------------------------------------------------------------------------
[INFO]?Total?time:?2.053?s
[INFO]?Finished?at:?2018-06-25T16:03:29+08:00
[INFO]?------------------------------------------------------------------------
[ERROR]?Failed?to?execute?goal?org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile?(default-compile)?on?project?order:?Fatal?error?compiling:?tools.jar?not?found:?/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el6_9.x86_64/jre/../lib/tools.jar?->?[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/MojoExecutionExceptiontomcat?Id?list?:
no?tomcat?pid?alive
cp:?無法獲取"/root/.jenkins/workspace/DeployOrder/order/target/order.war"?的文件狀態(tài)(stat):?沒有那個(gè)文件或目錄
mv:?無法獲取"order.war"?的文件狀態(tài)(stat):?沒有那個(gè)文件或目錄
2018-06-25
嘗試一下?yum??install??java-1.8.0-openjdk, 強(qiáng)制安裝jdk包 可以解決這個(gè)問題。
2021-01-09
sudo
?yum?
install
?java-1.8.0-openjdk-devel 用了這個(gè)以后再次構(gòu)建報(bào)錯(cuò)
2019-05-12
2018-12-09
同求步驟
2018-06-26
謝謝老師。我后來重新安裝了一個(gè)源碼的JDK。問題已解決十分感謝!?。?