之前总结的,只不过好久没写,刷下存在感
mvn clean install -pl xxx -am -Dmaven.compile.fork=true -Dmaven.test.skip=true -T 1C

其中xxx为项目地址

mvn clean install 打包编译安装
-pl 表示编译该模块
-am 表示编译该模块依赖模块
-Dmaven.compile.fork=true 启动多线程执行
-Dmaven.test.skip=true 跳过测试
-T 1C 根据core数目,每core启动一线程 (此参数为maven3支持,maven2不行)

如此编译速度提速60%-70%亲测

« HTTP缓存简介 从浏览器打开微信里面的网页(How to view the site in wechat on browser) »