maven 安装
win7
maven 安装
解压
新建环境变量
MAVEN_HOME
F:\Program Files (x86)\apache-maven-3.3.3
PATH
%MAVEN_HOME%\bin;
测试
cmd
mvn -v
配置本地仓库位置conf/settings
<localRepository>F:\Program Files (x86)\mavenRepository</localRepository>
<mirror>
<id>osc</id>
<mirrorOf>central</mirrorOf>
<url>http://maven.oschina.net/content/groups/public/</url>
</mirror>
<mirror>
<id>osc_thirdparty</id>
<mirrorOf>thirdparty</mirrorOf>
<url>http://maven.oschina.net/content/repositories/thirdparty/</url>
</mirror>
<profile>
<id>jdk-1.7</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>
win7
maven 安装
解压
新建环境变量
MAVEN_HOME
F:\Program Files (x86)\apache-maven-3.3.3
PATH
%MAVEN_HOME%\bin;
测试
cmd
mvn -v
配置本地仓库位置conf/settings
<localRepository>F:\Program Files (x86)\mavenRepository</localRepository>
<mirror>
<id>osc</id>
<mirrorOf>central</mirrorOf>
<url>http://maven.oschina.net/content/groups/public/</url>
</mirror>
<mirror>
<id>osc_thirdparty</id>
<mirrorOf>thirdparty</mirrorOf>
<url>http://maven.oschina.net/content/repositories/thirdparty/</url>
</mirror>
<profile>
<id>jdk-1.7</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>