maven只编译指定的module?

DunkOnly
  • 612

比如我要编译spark源码,用这个指令

build/mvn -Phadoop-2.6 -Dhadoop.version=2.6.0 -DskipTests clean package

spark有很多module,我想一次只编译其中几个module可以吗?

回复
阅读 5k
1 个回答
mvn -DskipTests clean package -pl sql/catalyst,sql/core,sql/hive
-pl,--projects <arg>                   Comma-delimited list of specified
                                        reactor projects to build instead
                                        of all projects. A project can be
                                        specified by [groupId]:artifactId
                                        or by its relative path
宣传栏