Maven的建设不仅改变了文件 [英] Maven building only changed files

查看:174
本文介绍了Maven的建设不仅改变了文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以说我有模块结构如下图所示。

Lets say i have module structure like below

     Modules
       ->utils
       ->domain
       ->client
       ->services
       ->deploy (this is at the module level)

现在劳克客户端我需要所有模块的构建,即utils的,域名,客户,服务,,因为我加载的所有的罐子上述模块fianlly lanch客户端

Now to lauch the client i need to make a build of all the modules, i.e utils, domain, client, services, because i am loading the jars of all the above modules to fianlly lanch the client

和所有的罐子被组装在模块部署。

And all the jars gets assembled in the module deploy.

我的问题是,如果我在,例如服务改变什么,那么有没有从运行构建时部署行家的方式可以识别它只建服务,从而构建它,并在部署文件夹部署呢?

My question is if i change anything in services for example, then is there a way when running a build from deploy maven could recognise it has to build only services and hence build it and deploy it in deploy folder?

推荐答案

如果您正在使用SVN和* nix,从根模块

If you are using SVN and *nix, from the root module

mvn install -amd -pl $(svn st | colrm 1 8 | sed 's /.*  ' | xargs echo | sed 's- -,:-g' | sed 's ^ : ') 

这篇关于Maven的建设不仅改变了文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆