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> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.2</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin>
問題就會得到解決
同時也遇到了專案的的web的版本無法更換,
解決辦法
找到專案根目錄下的.settings檔案開啟裡面的org.eclipse.wst.common.project.facet.core.xml隱藏資料夾找到下面對應的
將3.1改成合適版本 就ok了
相關推薦
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
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專案時出現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
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專案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>
【maven install報錯】Failed 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-war-plugin:2.2:war解決方案
問題現象: 用Maven打包時,報Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war錯誤。 原因分析: 打包時在WebContent/WEB-INF/資料夾下找不到web.xml檔案。 &nb
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
【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-compiler-plugin:2.0.2
相信很多人啟動maven專案都遇到過這種型別的錯。me too! 原因1:jdk版本跟maven版本不一致導致的。舉個例子,jdk1.6是不支援maven 2.0.2的,jdk1.7才行。 解決方案:這個得自己查詢,jdk 與 maven 版本的對應,再去java b
解決Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install的錯誤
環境:idea編譯器,SSM框架。 一.報錯: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project XXX:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:
security-sdk-1.0.jar已經存在於D:/secServerSDK-test/src/main/resources/lib下 報錯如下: [email protected] /d/secServerSDK-test/src/main/resources/lib $ mvn inst
報錯: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打包報錯: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 解決方法: 打包跳過測試有兩種