Maven的Setting.xml配置默认JDK,本地仓库,repositories
在settings标签里面添加
<localRepository>D:\Java\m2\repository</localRepository>
此为设置本地仓库
<profiles> <profile> <id>jdk-1.6</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.6</jdk> </activation> <properties> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> <maven.compiler.compilerVersion>1.6</maven.compiler.compilerVersion> </properties> </profile> <profile> <id>dev</id> <repositories> <repository> <id>local-nexus</id> <url>http://192.168.1.100:8081/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> </profiles>
此为添加本地nexus仓库和设置默认jdk为1.6