JAX-RS (REST Web Services) 2.0 can not be installed : One or more constraints have not been satisfied.

Jul 19, 2017 阅读(4062)

标签: Eclipse

Eclipse 导入Maven项目出错:

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.6 or newer.

Maven Java EE Configuration Proble

解决方法:

    因为maven使用的jdk是老版本的,所以只要在pom.xml中更换Java版本即可,然后项目右键 Maven->Update Project 即可,配置如下:

        ...
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>



MongoDB学习园