`
kanpiaoxue
  • 浏览: 1753831 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

maven指定打包的module

 
阅读更多

 

 

Use the Maven advanced reactor options, more specifically:

-pl,--projects
        Build specified reactor projects instead of all projects
-am,--also-make
        If project list is specified, also build projects required by the list

So just cd into the parent P directory and run:

mvn install -pl B -am

And this will build B and the modules required by B.

Note that you need to use a colon if you are referencing an artifactId which differs from the directory name:

mvn install -pl :B -am

As described here: https://stackoverflow.com/a/26439938/480894

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics