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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -