There is a project released to production, can not play full-scale package upgrade, because there are some directories in the customer's documents (this also line);
Practice down with Maven-assembly-plugin can be a perfect solution to the MAVEN project to hit the incremental package, formerly used by Ant script, now with the MAVEN plug-in, will use this plugin-related resources extracted, so with this project;
Project Address: Https://git.oschina.net/yejq/IncrementPackager.git
How to use?
1, put the patch description to Assermbly.txt;
In general, if it is an incremental patch, modifying the bug will record which code is modified under different bugs, and the path to copy the code is placed in a text file for easy copying to assermbly.txt.
Shortcut keys for copying code paths: Alt+enter,alt+p,ctrl+a,ctrl+c;
2, the Operation class Assemblyhelper inside method buildassermblycfg;
3, copy output to Assembly.xml;
4, then run the MVN package;
The normal situation will output:
[INFO]---maven-assembly-plugin:2.2.1:single (make-assembly) @ srpm---
[INFO] Reading Assembly Descriptor:src/main/assembly/assembly.xml
[INFO] Building Zip:d:\workspace\srpm\target\srpm-upd-20150424-1.zip
[INFO]------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]------------------------------------------------------------------------
[INFO] Total Time:01:15 min
[INFO] Finished at:2015-04-24t17:07:57+08:00
[INFO] Final memory:22m/90m
[INFO]------------------------------------------------------------------------
Incremental Patch Packager (I don't want to do that either)