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 build path和pom.xml檔案改配置。
原因2:maven編譯時,系統預設將檔案看成資原始檔,而不是java檔案。
解決方案:右擊專案名稱----------->build path--->configure build path..
另提供配置圖:
1、
2、
3、
4、
5、
6、如果還沒解決問題.1.設定自動編譯 project --->build automatically. 2.重新導一次專案
相關推薦
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
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
啟動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
報錯: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
解決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檔案,在適當位置加入下列依賴:
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>
【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專案打jar包的時候報錯:Failed to execute goal on project xxxx: Could not resolve dependencies for project
maven專案要打包成jar部署到伺服器上的時候報類似的錯: Failed to execute goal on project xxxx: Could not resolve dependencies for project xxxxxx:xxx:jar:0.
IDEA maven編譯專案報錯: Failed to execute goal on project XXX
1.問題現象 使用maven install(編譯)專案報錯: [ERROR] Failed to execute goal on project basic-logic: Could not resolve dependencies for project com.basic.management
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...... 這個
錯誤:Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2
報錯資訊: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] e3-manager .
idea建立maven專案沒有src目錄報錯:idea Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin
方法一: 之所以沒src目錄是因為maven還沒載入好,右下角還有進度條在從中央倉庫讀,所以在建立maven專案的時候,加archetypeCatalog=internal 方法二: idea新建maven 出現這個問題,直接去倉庫下面repository\org\
springboot啟動報錯:Failed to configure a DataSource
failed 方便 快捷 jdb 簡化 效率 alt exc 代碼 一、背景 springboot的出現,讓項目搭建變得更方便快捷,同時簡化掉很多的樣板化配置代碼,提高開發效率。 通過idea生成springboot項目,啟動報錯:Failed to configu
關於Tomcat啟動報錯:Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]
這幾天Tomcat啟動老是遇見這個錯 : Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"],看來是非要我記住這個教訓不可呀。 一般是 Tomcat 的預設埠被佔用
maven專案啟動報錯:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
maven專案部署到tomcat時報錯:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 檢查了maven的pom.xml,依賴引入正常。在工程
第一次新建maven專案後報錯:Failure to transfer org.codehaus.plexus:plexus:pom:3.0.1
problem info: Failure to transfer org.codehaus.plexus:plexus:pom:3.0.1 from http://repo.maven.apache.org/maven2 was cached in the local r
SpringBoot啟動報錯:Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and
今天倒騰了一下自己的SpringBoot demo的程式碼,發現啟動報瞭如下的錯誤: *************************** APPLICATION FAILED TO START *************************** Des