Q: maven remote repository
A:
<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror> <id>ibiblio</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url> </mirror>
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>Q: maven archetype:generate ... 创建项目很慢
A: 命令行后加 -X 开启调试模式, 若出现 Searching for remote catalog: http://repo.maven.apache.org/maven2/archetype-catalog.xml 信息, 可通过加 -DarchetypeCatalog=local 的方式调用本地仓库的 catalog.