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.
如圖所示:
已解決!!!
解決方式:
在pom.xml改爲1.7的jdk(但是應該改爲自己版本,貌似有bug)
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
上面代碼中
<source>1.7代表自己jdk版本</source>
<target>1.7代表自己jdk版本</target>
但是問題又來了,我的jdk1.8改完之後還會報錯,然後我修改爲1.7就好了,這個問題好奇葩!!!
問題解決了!!