代码拉取完成,页面将自动刷新
公开的仓库里的资源在未登录的浏览器里能正常访问,但在maven插件里却提示权限不足。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
<configuration>
<rulesUri>https://gitee.com/cn-src/public-resources/raw/master/versions-maven-plugin-rules.xml
</rulesUri>
</configuration>
</plugin>
换成 github 的公开仓库的url则没有问题 https://raw.githubusercontent.com/cn-src/platform-bom-extension/master/rules.xml
[INFO] --- versions-maven-plugin:2.5:display-dependency-updates (default-cli) @ aries ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.189 s
[INFO] Finished at: 2018-08-02T11:01:33+08:00
[INFO] Final Memory: 20M/283M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.5:display-dependency-updates (default-cli) on project aries: Authorization failure trying to load rules from https://gitee.com/cn-src/public-resources/raw/master/versions-maven-plugin-rules.xml: Access denied to: https://gitee.com/cn-src/public-resources/raw/master/versions-maven-plugin-rules.xml , ReasonPhrase:Forbidden. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Process finished with exit code 1