How to fix : automated Java version change to java 1.5 on updating maven project in Eclipse IDE

When we update any maven project, sometimes the java version used to get updated to 1.5 automatically. In order to restrict the force update version, just open POM.xml  in Eclipse and add below plugin configuration for resolution.
 
<plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
automated Java version change to java 1.5 on updating maven project in Eclipse IDE

Post a Comment

0 Comments