manven项目Java Resource红叉报错的处理
来源:互联网 发布:成都php 编辑:程序博客网 时间:2024/06/05 11:33
Eclipse运行maven项目 Java Resource上有个红叉
problems报错为JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer
试了一些方法,最后用这个方法解决
在pom.xml中添加(或修改)
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build>
以上为使用jdk1.7,若使用的1.8用<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build>
原因:jdk版本不一致。pom.xml中如果没有写此配置,默认是1.5的
0 0
- manven项目Java Resource红叉报错的处理
- 完成android的manven项目管理
- spring项目无法引入@Resource注解的问题处理
- eclipse环境下,新建一个Manven项目
- IDEA使用之让manven项目自动依赖jar包
- Maven项目Java Resource 出现红叉
- Maven项目Java Resource 出现红叉
- 持续集成工具Sonar的使用(一)[manven+sonar]
- Manven多模块工程中跳过不需要编译的模块
- Android Resource处理流程分析-- R.java文件中资源ID的含义
- 遇到问题---java---myeclipse中maven项目引用另一个导致的resource文件混乱的问题
- java项目HTTP Status 404(The requested resource is not avail)的问题
- Mysql+java项目的中文处理
- java异常处理:The requested resource () is not available
- Java:Resource leak: 'a' is never closed怎么处理?
- java项目乱码处理
- Eclipse Maven项目java resource 报错,有个红叉
- Eclipse Maven项目java resource 红叉错误
- CentOS6.6安装ShadowSocks服务端
- 点击按钮改变本身按钮的文字内容
- 学习
- Eclipse javax.comm.NoSuchPortException
- This application is modifying the autolayout engine from a background thread
- manven项目Java Resource红叉报错的处理
- SQLServer——字符长度
- 理解inode
- LeetCode Reverse Vowels of a String(字符串中元音字符反转)
- IntelliJ IDEA 16 本地LicenseServer激活(破解)
- JS查看Object对象的内容
- C#控制台 输出hello world
- mysql进阶:group_concat使用例子
- 如何向线程函数传递多个参数?