在Eclipse中配置Maven
1.指定Maven核心程序的位
Window→Preferences→Maven→Installations --(Installation home:D:\apache-maven-3.2.2)
2.指定settings.xml
Window→Preferences→Maven→User Settings --(Global Setting:D:\apache-maven-3.2.2\conf\settings.xml)
自动查找settings.xml中Local Repository:(D:\RepMaven)
修改工程默认的JDK版本:
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>