zoukankan      html  css  js  c++  java
  • 使用 JeecgBoot Maven 依赖包无法下载 异常 The following artifacts could not be resolve

    最近公司接了二次外包项目,项目是使用 JeecgBoot (doc.jeecg.com) 搭建的,第一次导入项目怎么都不成功,报了如下错误。

    [ERROR] Failed to execute goal on project xxx-base-core: Could not resolve dependencies 
    for project org.dekunframework.boot:xxxx-base-core:jar:2.4.0: The following artifacts 
    could not be resolved: org.hibernate:hibernate-re:jar:2.3.07, 
    org.jeecgframework.boot:codegenerate:jar:1.2.5: Cannot access nexus-aliyun 
    (http://maven.aliyun.com/nexus/content/groups/public) in offline mode and the artifact 
    org.hibernate:hibernate-re:jar:2.3.07 has not been downloaded from it before. -> [Help 1]

    最后处理方法是我本地用的maven需要使用mirrorOf排除掉jeecg;

    原配置:

    <!-- 作者:1014483974@qq.com -->
    <!-- 能日赚30的APP试玩平台推荐,亲测有效 -->
    <!-- https://mp.weixin.qq.com/s/VZRMTVWmKwfFV4-miJnOJw -->
    <mirror>
        <id>nexus-aliyun</id>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>

    需要添加配置:

    <!-- 作者:1014483974@qq.com -->
    <!-- 能日赚30的APP试玩平台推荐,亲测有效 -->
    <!-- https://mp.weixin.qq.com/s/VZRMTVWmKwfFV4-miJnOJw -->
    <mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf>

    修改后配置

    能日赚30的APP试玩平台推荐,亲测有效

    <!-- 作者:1014483974@qq.com -->
    <!-- 能日赚30的APP试玩平台推荐,亲测有效 -->
    <!-- https://mp.weixin.qq.com/s/VZRMTVWmKwfFV4-miJnOJw -->
    <mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf>
        <name>Nexus aliyun</name>
       <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>
  • 相关阅读:
    python 获取字典值
    EF 预热
    多线程实战(三)线程池
    多线程实战(二)线程同步
    C#并行编程 (Barrier,CountdownEvent,ManualResetEventSlim,SemaphoreSlim,SpinLock,SpinWait )
    多线程实战(一) 线程基础
    构建千万级web访问架构
    程序员创业,远离管理软件
    两棵树,你砍哪一棵?
    NopCommerce Html扩展方法Html.Widget
  • 原文地址:https://www.cnblogs.com/shiqiboy3974/p/15747198.html
Copyright © 2011-2022 走看看