您的位置:首页 > 其它

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

2017-02-20 14:58 369 查看
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就好了,这个问题好奇葩!!!

问题解决了!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐