换新电脑后,尝试从新环境打包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。也成功。