java - Maven package:mvn package -
i have maven project, father , son structure, perform mvn package in parent structure @ same time want specify sub-project pom.xml file profile id
you can define sub-project module in parent pom file profile below:
<profiles> <profile> <id>all-deps</id> <modules> <module>sub-project</module> </modules> </profile> </profiles> now can use following maven commands include sub-project parent
mvn package --activate-profiles all-deps
Comments
Post a Comment