maven

安装maven

替换下载地址  http://maven.oschina.net/help.html

入门 https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

cmd新建工程:
mvn archetype:generate -DgroupId=com.di.maven -DartifactId=hello-world -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false -X

//-X参数,输出命令执行过程中的log信息

Eclipse>window>preferences>maven>install选择maven安装目录;UserSettings选择maven/conf/settings.xml

New Maven Project>maven-archetype-quickstart/maven-archetype-webapp>new source folder>src/main/resources>build path order

maven.oschina.net搜索commons-beanutils添加<dependency>到pox.xml,会自动下载相关依赖jar包如commons-logging/collections.jar

 



你可能感兴趣的:(maven)