Wednesday 2 November 2011

Eclipse/Maven error: "Dynamic Web Module 3.0 requires Java 1.6 or newer. "

solution Add in pom.xml
 <build>
  <plugins>

   <plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.0.2</version>
    <configuration>
     <source>1.6</source>
     <target>1.6</target>
    </configuration>
   </plugin>

  </plugins>
 </build>

3 comments:

  1. thanks, it solved my problem...just updated the values in version tag 2.0.2 to 2.3.2 and its worked fine.
    thanks for post.

    ReplyDelete
  2. Thanks! I was stuck with this problem for a long time! ^_^

    ReplyDelete