我想开发一个多模块maven项目结构,其中包含五个单独的模块,其中一个是基于Web的。
我需要知道项目的结构,这可能是最好的,也很容易实现。
另外我如何在不同的文件夹结构中维护pom。
答案 0 :(得分:3)
+-- root
| +--- pom.xml //parent pom with <modules>
+-- module-a
| +--- pom.xml
+-- module-b
| +--- pom.xml
+-- module-c
| +--- pom.xml
+-- module-d
| +--- pom.xml
+-- module-web
+--- pom.xml //web module with <packaging>war</packaging>