【日记】 2017-12-18 MAVEN 子模块项目打包异常

换新电脑后,尝试从新环境打包triber项目。尝试打包task模块时失败。

异常信息为:

Failed to execute goal on project triber-bui-task:
Could not resolve dependencies for project com.bonc:triber-bui-task:jar:0.1:
Failed to collect dependencies at com.bonc:triber-bui-common:jar:0.1:
Failed to read artifact descriptor for com.bonc:triber-bui-common:jar:0.1:
Failure to find com.bonc:triber2017:pom:0.1 in https://repo.maven.apache.org/maven2
was cached in the local repository,
resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

一开始根据以往经验,以为是common模块未打包所致,遂打包,成功。再打包task依然失败。

再根据经验判断是lastUpdate文件作祟,已批处理删之。再打包task依然失败。

尝试 maven update project ,再失败

索性清空本地仓库,清空代码。重新开始,失败

听取同事建议,更换jdk7,失败。

一时没有法。

过段时间回过头,一行行分析,发现:Failure to find com.bonc:triber2017:pom:0.1
triber2017是父项目名称?犹豫了下,尝试为父项目打包,maven install.......
子项目被一个一个依次打包,其中就包括task。竟然全部成功。
再尝试单独打包task。也成功。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值