maven 的使用

1、maven包查询:

    http://search.maven.org/ (可以先用 artifactId 到这个网站查询, 找到groupid 之后,再到mvnrepository.com这个网站查询。)

    如:artifactId 等于 maven-archetype-webapp, 或者 等于 maven-archetype-quickstart 这个,在mvnrepository 上面都不能直接搜索到。

     先到 search.maven.org上面搜索,找到groupId ,然后再用找到的groupId  到 mvnrepository 上面搜索就可以找到了了。

   http://mvnrepository.com/ 

这里理解为一个groupId是一个项目地址

DartifactId 是每一个模块地址 每一个模块一个jar包

用groupid --> org.apache.maven.archetypes 到http://mvnrepository.com 上面搜索(search for groups,artifacts, categories),

这里理解为一个groupId是一个项目地址DartifactId 是每一个模块地址 每一个模块一个jar包

原文地址:https://www.cnblogs.com/oxspirt/p/7723591.html