使用maven整合ssm報錯:JAX-RS (REST Web Services) 2.0 can not be installed

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就好了,這個問題好奇葩!!!

問題解決了!!大笑

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章