I created a maven java project, and I want to use some new feature in Java7, but every time, after update the project, the JRE will be changed to 1.5 automatically.
After googling, got the solution: configure maven-compiler-plugin:
<build>
<finalName>J2EE</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
Oracle 11 XE & JDBC <->
// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.