Friday, February 23, 2018

Solution : Eclipse Maven projects default JRE System Library [J2SE-1.5] change to different version

When Icreate a new maven project and then click maven update my java version always change to java version 1.5. to resolve this problem must add below configuration in pom.xml file.


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