How to maven build child projects?

删除回忆录丶 提交于 2019-12-22 04:42:22

问题


I have aggregation where I link a parent Pom using the <modules> element, and then I have the <parent> specified in each child pom.

Is there a way I can build only a subset of the child modules from the parent pom... i.e.

cd parent-dir
mvn install subproj1 subproj2

回答1:


You can run Maven like this: mvn install -pl subproj1,subproj2

PS: another good Maven command to try: mvn -?



来源:https://stackoverflow.com/questions/13567960/how-to-maven-build-child-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!