Maven项目,右键-update project后报错如下的解决办法:

来源:互联网 发布:数据透视表怎么排序 编辑:程序博客网 时间:2024/06/07 07:28

重点内容
Maven项目,右键-update project后报错如下的解决办法:

这里写图片描述
1、Description
ResourcePathLocationType
Java compiler level does not match the version of the installed Java project facet.SSMDemo Maven WebUnknownFaceted Project Problem (Java Version Mismatch)
2、Description
ResourcePathLocationType
JAX-RS (REST Web Services) 2.0 requires Java 1.7 or newer.SSMDemo Maven Webline 1Maven Java EE Configuration Problem
3、Description
ResourcePathLocationType
One or more constraints have not been satisfied.SSMDemo Maven Web
line 1Maven Java EE Configuration Problem
解决办法:在pom.xml配置文件中加入如下语句:

  <build>    <finalName>RcIntegrity</finalName>    <plugins>          <!-- define the project compile level -->          <plugin>              <groupId>org.apache.maven.plugins</groupId>              <artifactId>maven-compiler-plugin</artifactId>              <version>3.1</version>              <configuration>                  <source>1.7</source>                  <target>1.7</target>              </configuration>          </plugin>      </plugins>  </build>  
原创粉丝点击