Maven 多模块项目是否应该在父级中有一个 src 目录?
Maven Checkstyle 插件 - 多模块配置指南 在父项目中有一个 src 目录。
我不知道这里会放什么,因为我认为任何 src 目录都会放在模块本身中。
那么,Maven 多模块项目的父级中是否应该有一个 src 目录呢?如果是这样,那么其中不属于子模块的内容会是什么?
谢谢!
The Maven Checkstyle Plugin - Multimodule Configuration Guide has a src directory in the parent project.
I have no idea what would go in here since I thought any src directories would go in the modules themselves.
So, should Maven multiple module projects have a src directory in the parent? And if so, what would go in there that wouldn't belong in a sub-module?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该目录中不需要任何内容。它只是为了表明它遵循相同的约定。在示例中,该目录为空。
如果您想让 Maven 为您的应用程序创建一个“站点”,“src/site”就是您放置附加配置信息的位置。然后,您将创建一个指向所有模块的“父”站点。
Nothing is required in that directory. Its just there to show that it follows the same convention. In the example, the directory is empty.
If you wanted to have Maven create a "site" for your application, "src/site" is where you would put your additional configuration information. You would then have a "parent" site created that points to all of the modules.