使用 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>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM