1.起初在pom.xml中配置了百度云如下,但在项目更新的时候如论如何也下载不下来百度云依赖
<!-- 百度云消息推送 -->2.后来经百度后发现,此包在maven中国仓库中,后面修改了maven的setting.xml文件后,才可以正常下载
- <dependency>
- <groupId>com.baidu.yun</groupId>
- <artifactId>bccs-api</artifactId>
- <version>3.0.1</version>
- </dependency>
- <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>nexus-osc</id>
- <mirrorOf>*</mirrorOf>
- <name>Nexus osc</name>
- <url>http://maven.oschina.net/content/groups/public/</url>
- </mirror>
- </mirrors>