Maven:多模块打包 Failed to read artifact descriptor for xxx:jar

  ’本人此问题是在多模块开发的时候出现的,直接在子模块中引用其他子模块,代码和包都是引用正确的,但是却是无法正确打包。

原因

  实际上原因很简单,我直接在子模块运行了 maven install,操作虽然是没错,但是在首次运行的时候,直接打包子模块是会出错的,需要先在父模块运行一次 maven install 。这样之后在子模块运行 maven install 就不会再报相关错误了。

猜你喜欢

转载自blog.csdn.net/qq_33811662/article/details/80938009