平时工作开发中,常见问题解决方案收集整理(持续更新)
来源:互联网 发布:sys wait.h windows 编辑:程序博客网 时间:2024/05/16 09:13
1、Maven项目包如下错误的解决方案
Dynamic Web Module 3.0 requires Java 1.6 or newer
I’m using STS and I configured my Web application to use Maven but, when I try to use Maven > Update project configuration, I’m getting this really annoying project error:
Dynamic Web Module 3.0 requires Java 1.6 or newer. [...] Maven WTP Configuration Problem One or more constraints have not been satisfied.
STS/Eclipse are configured to use Java 1.6 but my project apparently isn’t. So I go change that, but it doesn’t fix that error, and any time I update project config with Maven, it’s back to using JRE 1.5 and my Java source files are no longer on the build path as source files. This because the Maven compiler plugin doesn’t use Eclipse settings and just imposes its own defaults, i.e. Java 5, unless otherwise configured by a POM. And since a “Dynamic Web Project” uses Servlet 3.0 it requires Java 6.
To fix, just add under the top-level POM:
<build><plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin></plugins> </build>
2、
- 平时工作开发中,常见问题解决方案收集整理(持续更新)
- 平时工作中的疑问收集(持续更新)
- iOS开发:常见问题及解决方案(持续更新...)
- 面试常见问题及相关答案整理(持续更新中)
- 工作项目中常见问题! 持续更新!
- 平时工作中一定会用到的Linux指令(每周会持续更新~)
- R语言常见问题(持续更新整理)
- angularjs开发常见问题-1(持续更新中...)
- android 开发中常见问题合集(持续更新)
- Storm常见问题及解决方法收集【持续更新中】
- storm常见问题及解决方法收集【持续更新中】
- Storm常见问题及解决方法收集【持续更新中】
- 软件开发视频教程收集 --- 持续更新中
- Myeclipse常见问题整理----持续更新
- 工作中几条小经验整理(持续更新)
- 整理国内外ios相关开发资源(持续更新中)
- 一些平时工作中js的收集
- TimesTen常见问题(持续整理中)
- Cocos2dx Widget 按钮透明区域过滤
- filesystem capabilities support
- Android shell工具类
- java mina MidResponseDTO
- Sql Server事物、索引、视图
- 平时工作开发中,常见问题解决方案收集整理(持续更新)
- Android网络框架Volley
- Hadoop MapReduce做大数据排序
- 支付宝
- 理解事务机制
- Android程序崩溃异常收集框架
- 餐饮网站O2O转型兴起背面:五大力气凸显和强化
- 加强、提升SSL的密钥位数防止被黑客攻破
- 尊重原创,请保证您的文章为原创作品