Previous Article Creating a Maven Multi-Module Project with Eclipse
The project structure is shown in the figure
jre uses 1.5 I use 1.7 to modify
Right click on the project hill --> Properties
Check out the project after completion
It's already 1.7
But is it over?
Now I remove the project and re-import it to see if it is still 1.7
After re-importing it changed back. Is it difficult to change it again?
Now I'm going with a once-and-for-all approach.
I added the following code to the pom.xml of zwp-parent:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.7</source> <target>1.7</target> <skip>true</skip> </configuration> </plugin> </plugins> </build>
Then remove the project and re-import it.