常用命令:
mvn -v
mvn help:system
mvn clean
mvn clean compile
mvn clean test
mvn clean package
mvn clean install
mvn dependency:sources(下载依赖jar包的源码)
mvn dependency:sources -DdownloadSources=true -DdownloadJavadocs=true(下载源码和文档)
使用maven archetype来创建maven项目骨架:
Maven3:
mvn archetype:generate
Maven2:
mvn apache.maven.plugins:maven-archetype-plugin:2.0-alpha:generate