打包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 to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project pinyougou-shop-web: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
當出現這個錯誤的時候,你就要在相應的maven工程中建立web.xml,如果建立好了之後還是報錯,就要在這裡進行修改
相關推薦
打包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-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-surefire-plugin:2.12.4:test
cut apach 解決辦法 blog 研究 gpo failed fire 描述 今天用maven在命令行打包項目的時候出現錯誤: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:
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
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專案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>
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部署到Tomcat出現錯誤:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1
大家都知道錯誤內容相同時,出現的場景也不一定相同。所以本篇提出的錯誤解決方案可能僅僅適用跟我相同場景下的情況。 1、出現錯誤的場景: 按照我之前一篇文章【Eclipse中Maven的整合和使用介紹】進行配置Maven之後,在再src/main/java資料夾下建立Servl
解決Maven打包怪異異常:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resource
今天在使用maven打包時正常操作卻報出瞭如題的錯誤: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resource...... 這個
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 解決方法: 打包跳過測試有兩種
針對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
maven 編譯出錯 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean
clip 多次 一個 控件 text 紅色 exe org apach eclipse在使用maven的tomcat控件編譯java程序時,報錯 Failed to execute goal org.apache.maven.plugins:maven-clean-plu
解決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
Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:war (default-war) on project ca
Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:war (default-war) on project cas: Unable to parse configuration of mojo org.apach
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
今天用maven在命令列打包專案的時候出現錯誤: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project xxx: There are