您的位置:首页 > 编程语言 > Java开发

maven+springmvc错误 JAX-RS (REST Web Services) 2.0 can not be installed

2015-09-15 12:05 507 查看
项目problem提示错误

JAX-RS (REST Web Services) 2.0 can not be installed : One or more constraints have not been satisfied

JAX-RS (REST Web Services) 2.0 requires Java 1.7 or newer

解决方案

1.在pom.xml文件中添加
<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>
</configuration>
</plugin>
</plugins>
</build>
2.右键项目Update Maven Project
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: