导入了一个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>