使用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就好了,这个问题好奇葩!!!
问题解决了!!
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就好了,这个问题好奇葩!!!
问题解决了!!
相关文章推荐
- maven+springmvc错误 JAX-RS (REST Web Services) 2.0 can not be installed
- maven+springmvc错误 JAX-RS (REST Web Services) 2.0 can not be installed
- maven+springmvc错误 JAX-RS (REST Web Services) 2.0 can not be installed
- maven+springmvc错误 JAX-RS (REST Web Services) 2.0 can not be installed
- Eclipse Java EE工程报错:JAX-RS (REST Web Services) 2.0 can not be installed、JAX-RS (REST Web Services) 2
- 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 can not be installed: One or more constraints have not been satisfied
- JAX-RS(REST Web Services)2.0 can not be installed: One or more constraints have not been satisfied
- Maven学习总结(35)——Maven项目错误 JAX-RS (REST Web Services) 2.0 can not be installed问题
- Failed while installing JAX-RS (REST Web Services) 1.1. org.osgi.service.prefs.BackingStoreException: Resource '/.settings' does not exist.
- JavaServer Faces 2.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed
- JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer
- JAX-RS (REST Web Services) 2.0 requires Java 1.7 o
- Eclipse JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer
- JavaServer Faces 2.0 can not be installed解决方案
- JAX-RS(REST Web Services)2.0 requires Dynamic Web Module 3.1 or newer
- SpringSide 部署showcase项目出现 JAX-RS (REST Web Services) 2.0 can not be installed错误!
- JavaServer Faces 2.0 can not be installed解决方案