pom.xml文件配置maven仓库地址
中央仓库就是Maven的一个默认的远程仓库,Maven的安装文件中自带了中央仓库的配置($M2_HOME/lib/maven-model-builder.jar)
在很多情况下,默认的中央仓库无法满足项目的需求,这时就需要在pom.xml文件中配置仓库
在pom文件中的配置仅对当前项目有效,但若需在其他项目中使用,为避免代码重复性,减少冗余,可在settings.xml文件中配置。在setting.xml文件中不存在repositories、pluginRepositories标签,而选择使用profile
要注意的是:
datanucleus
http://www.datanucleus.org/downloads/maven2/
ibiblio
http://mirrors.ibiblio.org/pub/mirrors/maven2/
gwt-maven
http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
maven2-repository.dev.java.net
Java.net Repository for Maven
http://download.java.net/maven/2/
jboss
http://repository.jboss.com/maven2
gilead-maven-repo
https://gilead.svn.sourceforge.net/svnroot/gilead/gilead/maven-repo
hibernat4gwt-repo
https://hibernate4gwt.svn.sourceforge.net/svnroot/hibernate4gwt/branches/jens_meiss/maven/
gilead-repo
Gilead Maven Repository
https://gilead.svn.sourceforge.net/svnroot/gilead/gilead/maven-repo