zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    在 .NET 3.5 中序列化和反序列化 JSON Kevin
    .NET 3.5 获取不全Cookie的问题 Kevin
    C#反序列化JSON数组对象 Kevin
    使用ConfigurationManager类 读写配置文件 Kevin
    C# post数据时 出现如下错误: System.Net.WebException: 远程服务器返回错误: (417) Expectation Failed 的解决办法 Kevin
    .NET 关于反序列化 JSON 对象数组的问题 Kevin
    为什么调用thread.Abort(),线程不会马上停止 Kevin
    vs2005调用迅雷完美解决方案 Kevin
    .NET 复杂的 DataBinding 接受 IList 或 IListSource 作为数据源 Kevin
    找不到DataContract属性! Kevin
  • 原文地址:https://www.cnblogs.com/tenghoo/p/maven_error.html
Copyright © 2011-2022 走看看