Maven進價:Maven構建錯誤匯總


問題:The method of type must override asuperclass? annotation:@Override的原因

辦法:項目右鍵->build path->configure build path->java Compiler(左邊那排中) ->在右邊的Compiler compliance level 修改版本為 6.0

參考:http://linhfgo.iteye.com/blog/1470996

 

問題:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile

辦法:Installed JREs  使用本機的JDK

參考:http://macrotea.iteye.com/blog/1521254

 

 

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

辦法:

1、確認本機安裝了JDK。

2、由於Eclipse使用的是JRE導致,添加JDK即可。

參考:http://my.oschina.net/zhuka/blog/124503

 

問題:maven Error configuring application listener of class org.springframework.web.util

1、Clean 項目

2、Clean Server

3、項目的Deployment Assembly 中 添加Maven Dependencies

參考:http://www.yihaomen.com/article/java/471.htm

 

問題:在springMVC中使用Freemarker,配置靜態資源路徑后(mvc:resources),訪問Controller出現404

辦法:配置默認的注解映射的支持 <mvc:annotation-driven />

參考:http://my.oschina.net/duoduo3369/blog/168458

 

問題:在springMVC中使用Freemarker,配置靜態資源路徑后(mvc:resources,靜態文件404

辦法:在 web.xml 中讓springmvc攔截所有請求

	<servlet-mapping>
		<servlet-name>spring</servlet-name>
		<url-pattern>/</url-pattern>
	</servlet-mapping>

參考:http://my.oschina.net/duoduo3369/blog/168458

 

問題:Bean property 'maxActive' is not writable or has an invalid

辦法:使用 jedis-2.2.0

參考:http://www.haodaima.net/art/2562772

 

問題:No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -

辦法:pom.xml文件<build>標簽里面加上<defaultGoal>compile</defaultGoal>即可 

<build>
  <defaultGoal>compile</defaultGoal>
</build>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM