mvn help:active-profiles 查看激活的profiles
mvn help:effective-pom 查看有效的pom
mvn help:effective-settings
安装jar包至本地仓库
mvn install:install-file -Dfile=abc.jar -DgroupId=haha -DartifactId=abc -Dversion=1.0 -Dpackaging=jar
配置多个mirror实质上是指当第一个mirror无法连接的时候,maven会自动转换至下个mirror,并非找不到a.jar包,就转换到下个mirror
JBoss Maven Repository
http://repository.jboss.org/maven2
Springsource Maven Repository
http://s3browse.springsource.com/browse/repository.springsource.com/maven/bundles/external
http://s3browse.springsource.com/browse/repository.springsource.com/maven/bundles/milestone
http://s3browse.springsource.com/browse/repository.springsource.com/maven/bundles/release
http://s3browse.springsource.com/browse/repository.springsource.com/maven/bundles/snapshot
本文介绍了Maven中常用的命令,如查看激活的profiles、有效的pom文件等,并详细解释了如何将jar包安装到本地仓库的具体步骤。此外,还讨论了配置多个mirror的作用及其实现机制,并列举了一些常用的Maven Repository。
3万+

被折叠的 条评论
为什么被折叠?



