• 使用 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>
  • 相关阅读:
    Ubuntu vim java 自动补全javacomeplete2
    vim多行注释和取消注释 Ubuntu
    vim tab设置为4个空格
    liunx 命令行快捷键 常用命令
    win7 +v Ubuntu 16.04 grub rescue 模式下修复 grub
    Ubuntu16.04安装WPS
    liunx ubuntu java 环境的配置
    Vim简明教程【CoolShell】(转)
    ubuntu16.04安装chrome
    android全屏下的输入框未跟随软键盘弹起问题
  • 原文地址:https://www.cnblogs.com/shiqiboy3974/p/15747198.html
Copyright © 2020-2023  润新知