1.一直卡在resoving dependencies
2. aliyun的仓库有很多包没有,比如pmml的,所以官方的mirror也要配并且要配对
正确的:
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<!-- 指定镜像 ID -->
<id>nexus-aliyun</id>
<!-- 匹配中央仓库。 -->
<mirrorOf>central</mirrorOf>
<!-- 指定镜像名称 -->
<name>Nexus aliyun</name>
<!-- 指定镜像路径 -->
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
3. maven-pom文件报expected START_TAG or END_TAG not TEXT
pom文件报expected START_TAG or END_TAG not TEXT
导致里面的依赖下载不了,进而导致程序运行不了或运行报错。
原因就是pom的一些标签从别处复制过来的时候带有一些格式或者是空格,而pom不认。
用notepad打开并显示所有字符后,会发现有些标签后面有空格,这在pom中是不被允许的,删除这些空格即可。巨坑,there was a long delay here