Eclipse Java EE工程报错:JAX-RS (REST Web Services) 2.0 can not be installed、JAX-RS (REST Web Services) 2

来源:互联网 发布:centos iso镜像下载 编辑:程序博客网 时间:2024/05/05 19:47

导入了一个Java EE SDK7 里面的工程,Eclipse报错

JAX-RS (REST Web Services) 2.0 can not be installed : One or more constraints have not been satisfied. message-board line 1 Maven Java EE Configuration Problem

JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer. message-board line 1 Maven Java EE Configuration Problem

提示requires Java 1.6 or newer,看了下Properties -> Project Facets -> Java配的是1.8没错,又看了看提示是Maven Java EE Configuration Problem相关问题,于是想到可能与maven-compiler-plugin相关,在该插件添加以下选项后解决

<plugin>    <artifactId>maven-compiler-plugin</artifactId>    <configuration>        <source>1.8</source>        <target>1.8</target>    </configuration></plugin>
0 0
原创粉丝点击