1. 程式人生 > >maven pom 報錯 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1

maven pom 報錯 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1



Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project xxxxx: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.plexus:plexus-compiler-api:jar:1.8, org.codehaus.plexus:plexus-compiler-manager:jar:1.8, org.codehaus.plexus:plexus-compiler-javac:jar:1.8: Failure to find org.codehaus.plexus:plexus-compiler-api:jar:1.8 in

http://xxxxxxx:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

本來是沒問題的,maven里加上私服的配置就有問題了。

高了半天,很簡單,還是看這英文的報錯就行了,org.apache.maven.plugins:maven-compiler-plugin:2.3.1 這個在本地庫是存在的。

但是 org.codehaus.plexus:plexus-compiler-api:jar:1.8 等幾個jar 在本地庫沒有,刪除對應的資料夾,還是下不下來。我到私服上去看,發現沒有這個版本的index。我在網上下了缺少的這個jar放在本地庫後,沒問題了。估計他是去私服上去找了。但是私服上沒有對應的索引,所以出問題。

我把缺少的jar包放到私服上後,刪除倉庫中這些jar包。重新開啟程式,更新pom,ok!

相關推薦

maven pom Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1

 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project xxxxx: Execution defa

maven install時報 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)

ive form ron dev isp nag about oal KS 今天在一個maven項目上執行maven install命令的時候一直報錯,錯誤信息如下: [INFO] -------------------------------------------

maven install時報Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

今天jetty執行時發生了下面這個錯誤 最後找到的解決辦法是 在maven專案中的pom.xml在新增 <plugin> <groupId>org.apache.maven.plugins</groupId> <a

【spring cloud】在spring cloud服務中,打包ms-core失敗,Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RELEASE:repackage (default

在spring cloud服務中,有一個ms-code專案,只為所有的微服務提供核心依賴和工具類,沒有業務意義,作為核心依賴使用。所以沒有main方法,沒有啟動類。 在spring cloud整體打包的過程中報錯: [INFO] --- maven-jar-plugin:3.0.2:jar (def

打包maven專案時出現Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war)

當一個maven專案是web工程的時候,要注意新增web.xml檔案,一般預設是建立在main目錄下的webapp/WEB-INF/web.xml,當然,如果你選擇了maven 動態模板,會自動幫你建好這個目錄,如果沒有的話,你就要自己建立了。 如果沒有的話,會報錯:[ERROR] Failed

Maven Build時提示:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

一、問題描述 Maven執行 mvn clean install 提示: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on pro

解決maven install信息(Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile )

ide auto javase post splay for except ava class Maven install失敗 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path Maven專案Failed to execute goal org.apache.maven.plugi

 ① The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 完整錯誤資訊: THIS SOFTWARE IS PROVIDED BY THE

maven專案啟動Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2

相信很多人啟動maven專案都遇到過這種型別的錯。me too! 原因1:jdk版本跟maven版本不一致導致的。舉個例子,jdk1.6是不支援maven 2.0.2的,jdk1.7才行。 解決方案:這個得自己查詢,jdk 與 maven 版本的對應,再去java b

maven install ,解決Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile

在碰到maven install 發現報錯 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on projec

maven package 打包 Failed to execute goal

總結一下maven 打包,專案工程開發工具idea14,使用 JDK 1.8 版本1.打包前需要先將idea關掉,不然會導致mvn clean的時候,部分檔案刪除不掉,mvn package的時候,也會丟失檔案。2.mvn package打包報錯:[ERROR] Failed

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile

在eclispe上執行mvn命令報錯:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile (default-testCompile) on project VS

啟動tomcat執行maven工程Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:

控制檯報錯資訊:   解決方案:在maven工程pom.xml中新增如下依賴 <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId&g

解決maven打war包Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2

一、報錯經歷:今天使用eclipse通過maven install打war包的時候,出現了下圖所示的錯誤二、問題分析:不能執行依賴包maven-compiler-plugin:2.3.2,判斷原因是缺少這個jar包三、問題解決:開啟pom.xml檔案,在適當位置加入下列依賴:

idea建立maven專案沒有src目錄:idea Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin

方法一: 之所以沒src目錄是因為maven還沒載入好,右下角還有進度條在從中央倉庫讀,所以在建立maven專案的時候,加archetypeCatalog=internal 方法二: idea新建maven 出現這個問題,直接去倉庫下面repository\org\

maven installFailed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile

maven install之後報的錯誤如下: [INFO] Scanning for projects... [INFO] Downloading: http://xxx.xxx.xxx.xxx:xxxx/nexus/content/groups/publ

maven打包Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test

mvn compile  沒有問題,mvn package的時候報如下錯誤: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test  解決方法: 打包跳過測試有兩種

maven打包Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin

mvn compile  沒有問題,mvn package的時候報如下錯誤: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test  解決方法: 打包跳過測試有兩種

maven專案war包時報Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile

原因:缺少maven-compiler-plugin.jar包 解決:pom匯入jar包 <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>

針對Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1的解決方案

failed led tool data- rdquo xml文件 artifact 裏的 span 背景:本項目使用JDK1.8 編譯maven工程的時候出現如下錯誤: Failed to execute goal org.apache.maven.plugins:m