Maven naming conventions for hierarchical multiple module projects

后端 未结 3 897
后悔当初
后悔当初 2021-01-30 21:58

I\'ve got a question on Maven naming conventions (groupId, artifactId and directory names) in a multiple module project with a hierarchical directory structrure.

Resear

3条回答
  •  旧巷少年郎
    2021-01-30 22:17

    Another possible approach is to look at function groups more than hierarchy.

    Say project B has webapps, plugins and core librairies, then all modules share the same group id (com.mycompany.b) and artefacts are respectively named webapp-???, plugin-??? and core-???.

    We also use the -parent convention mentioned earlier: therefore, the parent POM for all webapps is called webapp-parent.pom.

提交回复
热议问题