After you have successfully compiled and deployed the subprojects using the 在成功编译并部署了子项目(使用
For example, a central build script provides properties for subprojects 例如,中心构建脚本提供子项目的属性。
If your project includes subprojects, they also inherit these goals 如果项目包括子项目,子项目也继承这些goal。
All subprojects should share the same group id but each should have a distinct 所有的子项目应共享同一组标识,但每个子项目应有不同的
Use subprojects as a way to break complex projects into more manageable parts 使用子项目可以将复杂的项目拆分为更易于管理的项目块。
A group id proves especially useful when your project includes multiple subprojects 事实证明,当项目包括多个子项目时,组标识非常有用。
Because goals are inherited in subprojects, take care when choosing the goal s name 因为goal在子项目中继承,所以选择goal的名称时要当心。
In the maven default layout, subprojects are located in sub-folders of the main projects 在maven缺省布局中,子项目位于主项目的子文件夹中。
The subprojects, however, might not build stand-alone, because they are not aware of the properties that are provided during a full build 但是,子项目不可能单独构建,因为它们知道完整构建的过程中所提供的属性。
To help alleviate those problems, maven s reactor feature builds subprojects automatically and in the right order, saving time and reducing mistakes 为帮助解决这些问题,maven的reactor功能部件以正确的顺序自动构建子项目,这样就节省了时间且减少了错误。