How to maven build child projects?

2019-04-27 03: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条回答
SAY GOODBYE
2楼-- · 2019-04-27 04:27

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

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

查看更多
登录 后发表回答