MAVEN+SPRINGMVC error Jax-rs (REST Web Services) 2.0 can not be installed

Source: Internet
Author: User

Item Problem Tip Error

Jax-rs (REST Web Services) 2.0 can not is installed:one or more constraints has not been satisfied

Jax-rs (REST Web Services) 2.0 requires Java 1.7 or newer.

Workaround:

In Pom.xml I changed from JDK1.6 to 1.7 jdk

Add the following code between <build>

1 <plugins> 2 <plugin>   3 <groupid>org.apache.maven.plugins</ Groupid>   4 <artifactId>maven-compiler-plugin</artifactId>   5 <version >3.0</version>   6     <configuration>   7         <source >1.7</source>   8         <target>1.7</target>  9     </configuration>   </plugins>

Maven+springmvc error Jax-rs (REST Web Services) 2.0 can not be installed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.