java - Maven child module profile -
i have maven multi-module project. parent has test profile , includes child in profile itself.
- if run mvn -p test child module, parent's "test" profile executed?
- what if want provide test profile specific child module only?
- no. child inherits configuration parent, it's not buildchain relationship. while, since have specified child module, child built when parent gets built, point of view of child in case, parent dependency of type "pom".
- you execute build child test profile.
note that:
- you able see building project,
- inheritance (children) , aggregation (modules) separate concepts in maven.
Comments
Post a Comment