maven常用命令
mvn -v 查看maven版本
compile 编译
test 测试
package 打包
clean 删除 target
install 安装jar到本地仓库
archetype插件用于创建符合maven规定的目录骨架
创建目录的两种方式
archetype:generate 按照提示进行选着
archetype -DgroupId=组织名
-DartifactId=项目名-模块名
-Dversion=版本号
-Dpackage=代码所存在的包名
<localRepository>F:/eclipse/repo</localRepository> 更改本地仓库的位置
设置maven默认支持的JDK版本
<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>
mvn -v 查看maven版本
compile 编译
test 测试
package 打包
clean 删除 target
install 安装jar到本地仓库
archetype插件用于创建符合maven规定的目录骨架
创建目录的两种方式
archetype:generate 按照提示进行选着
archetype -DgroupId=组织名
-DartifactId=项目名-模块名
-Dversion=版本号
-Dpackage=代码所存在的包名
<localRepository>F:/eclipse/repo</localRepository> 更改本地仓库的位置
设置maven默认支持的JDK版本
<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>