第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在項(xiàng)目中執(zhí)行mvn package的時(shí)候出現(xiàn)異常

在項(xiàng)目中執(zhí)行mvn package的時(shí)候出現(xiàn)異常

肥皂起泡泡 2019-03-01 10:36:24
pom.xml <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> In Windows [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ todoapp --- [INFO] Building jar: C:\Dev\workspace-ansb\spring-boot\spring-boot-backend\target\todoapp-0.0.1-SNAPSHOT.jar [INFO] --- spring-boot-maven-plugin:1.5.6.RELEASE:repackage (default) @ todoapp In CentOS [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ todoapp --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ todoapp --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 4 source files to /opt/spring-boot/spring-boot-backend/target/classes [INFO] ------------------------------------------------------------- [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: 2.494 s [INFO] Finished at: 2017-08-28T16:09:08+08:00 [INFO] Final Memory: 15M/36M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project todoapp: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] [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 [root@admin]# echo $JAVA_HOME /usr/lib/jvm/jre-1.8.0-openjdk [root@admin]# echo $PATH /usr/local/apache-maven/bin:/usr/local/apache-maven/bin:/usr/local/apache-maven/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/jre-1.8.0-openjdk/bin:/root/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64/bin:/usr/lib/jvm/jre-1.8.0-openjdk/bin JAVA_HOME 和PATH 都配置了。 發(fā)現(xiàn)一個問題,不知道什么原因在centos里面是用的maven-resources-plugin:2.6:resources和maven-compiler-plugin:3.1:compile;在windows里面是用的maven-jar-plugin:2.6:jar 和 spring-boot-maven-plugin:1.5.6.RELEASE:repackage;
查看完整描述

1 回答

?
慕的地8271018

TA貢獻(xiàn)1796條經(jīng)驗(yàn) 獲得超4個贊

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

看人家給出的錯誤提示,你的JAVA_HOME指向了JRE,而不是JDK

查看完整回答
反對 回復(fù) 2019-03-01
  • 1 回答
  • 0 關(guān)注
  • 658 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號