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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -