Dynamic Web Module 3.0 requires Java 1.6 or newer.

Java compiler level does not match the version of the installed Java project facet.

JAX-RS (REST Web Services) 2.0 requires Java 1.6 or newer.

One or more constraints have not been satisfied.

maven+eclipse complier Dynamic Web Module 3.0 requires Java 1.6 or newer.

添加这行代码

   <plugins>
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.2</version>
    <configuration>
        <source>1.8</source>
        <target>1.8</target>
    </configuration>
</plugin>
</plugins>

然后maven ——> update project

 

转载于:https://my.oschina.net/ldm95/blog/887438

相关文章:

  • 2022-01-20
  • 2021-11-20
  • 2021-07-04
  • 2021-05-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2021-10-29
  • 2021-07-06
  • 2022-12-23
相关资源
相似解决方案