用过 Maven 的朋友都知道其 site 命令。昨天在使用 mvn site 命令是发现这样的错误
The repository url 'http://s3.amazonaws.com/maven.springframework.org/release' is invalid - Repository 'spring-release' will be blacklisted.
这直接导致了 mvn site 命令运行十分缓慢。
经过排查发现是 spring-security-core 所引用的 spring-security-parent 中的 pom 使用了 amazonaws 的 repository。实际上,spring-security-parent 中没有任何实际 jar 包。那就好办了,直接在项目的 pom.xml 里 exclude 掉就行了。