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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -