美文网首页
Maven项目子模块如何引用父模块的jar包

Maven项目子模块如何引用父模块的jar包

作者: 明月几何8 | 来源:发表于2020-07-22 10:07 被阅读0次

    如果父pom中使用的是 <dependencies>....</dependencies> 的方式,则子pom会自动使用pom中的jar包,

    如果父pom使用 <dependencyManagement> <dependencies>....</dependencies> </dependencyManagement>

    则子pom不会自动使用父pom中的jar包,这时如果子pom想使用的话,就要给出groupId和artifactId,无需给出version

    转载自:https://www.cnblogs.com/westlife-11358/p/11325765.html

    相关文章

      网友评论

          本文标题:Maven项目子模块如何引用父模块的jar包

          本文链接:https://www.haomeiwen.com/subject/rphzkktx.html