• 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>
  • 相关阅读:
    内存管理简介之Buddy算法和slab分配
    进程通信方式介绍
    Linux内核网络栈实现分析(十一)驱动程序层(下)
    Linux内核网络协议栈深入分析(二)sk_buff的操作函数
    Linux内核网络协议栈深入分析(一)与sk_buff有关的几个重要的数据结构
    内核源码学习:伙伴算法
    寒假Day16Dinic模板更新+优化
    寒假Day20:数位dp
    寒假Day21:Catalan Square卡特兰数 JAVA写大数
    寒假Day17UVALive3231Fair Share(最大流+二分)
  • 原文地址:https://www.cnblogs.com/tenghoo/p/maven_error.html
Copyright © 2020-2023  润新知