Maven – Guide to using Multiple Repositories

发布时间 2023-12-26 18:05:06作者: 任国强

 

[Maven – Guide to using Multiple Repositories](https://maven.apache.org/guides/mini/guide-multiple-repositories.html)

PS D:\gitrepo\fairbeautycrm\fairbeauty-crm-test> mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: D:\apache-maven
Java version: 1.8.0_291, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_291\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
<repository>
      <id>jeecgrepo</id>
      <name>jeecg com repo</name>
      <url>http://maven.jeecg.com/nexus/content/groups/public</url>
    </repository>

 

注意:是http而不是https。

原因:https使用的ssl证书无效导致的一个错误。

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project fairbeauty-crm-test: Could not resolve dependencies for project com.fairbeauty:fairbeauty-crm-test:jar:0.0.2: The following artifacts could not be resolved: org.jeecgframework.p3:jeecg-p3-core-api:jar:1.0.0 (absent), org.jeecgframework.p3:jeecg-p3-core-ui:jar:1.0.0 (present, but unavailable): Could not find artifact org.jeecgframework.p3:jeecg-p3-core-api:jar:1.0.0 in mirror (https://maven.aliyun.com/nexus/content/groups/public) -> [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/DependencyResolutionException