Maven缺少JDK 编译插件报错 --- DescriptionResourcePathLocation Type
来源:互联网 发布:c语言打印long 编辑:程序博客网 时间:2024/06/05 03:12
Maven项目,右键-update project后报错如下:
Description ResourcePathLocationType Java compiler level does not match the version of the instal
1、DescriptionResourcePathLocationType
Java compiler level does not match the version of the installed Java project facet.SSMDemo Maven WebUnknownFaceted Project Problem (Java Version Mismatch)
2、DescriptionResourcePathLocationType
JAX-RS (REST Web Services) 2.0 requires Java 1.7 or newer.SSMDemo Maven Webline 1Maven Java EE Configuration Problem
3、DescriptionResourcePathLocationType
One or more constraints have not been satisfied.SSMDemo Maven Webline 1Maven Java EE Configuration Problem
解决办法:在pom.xml配置文件中加入如下元素:<!-- 配置maven项目编译插件,即jdk -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
详细位置如下:
阅读全文
0 0
- Maven缺少JDK 编译插件报错 --- DescriptionResourcePathLocation Type
- maven工程 缺少插件导致编译不成功问题
- maven添加项目jdk编译插件
- Ambari编译报错:缺少setuptools模块
- maven编译报错
- maven缺少jdk-tools解决方法
- Maven管理下使用Eclipse编译插件,指定JDK插件
- 关于eclipse添加maven后报缺少JDK的错误解决方法
- maven tomcat插件build插件报错
- SQLServer导入excel报错因缺少插件
- maven 编译报错集锦
- maven 编译报错MojoFailureException
- maven编译报错解决
- maven项目编译报错
- 编译报错"field has incomplete type"
- 电脑突然死机,编译报错dll缺少依赖项
- maven插件的jdk
- maven配置jdk插件
- 基于Kinect体感遥控多功能小车
- solr 相似匹配
- 【theano-windows】学习笔记四——theano中的条件语句
- linux下 多线程的使用
- 30 个很棒的 PHP 开源 CMS 内容管理系统
- Maven缺少JDK 编译插件报错 --- DescriptionResourcePathLocation Type
- oracle中一个表update慢的优化
- 安全发布和安全初始化
- javaseday36(dom基本概念 名称空间 通过document 获取节点多种方式)
- MIPS架构的传奇演化
- 收获,不止SQL优化——抓住SQL的本质--第八章
- Monkey配置
- 微信支付-公众号支付
- 设计模式(12)--Proxy(代理模式)--结构型