Search code examples
svnmavenmaven-pluginjava-ee-5

Maven - extract resources (plus binaries) modified since revision


We have a Java EE 5 project built with Ant, which we are porting to a Maven build infrastructure.

We are using SVN as version control and a Jenkins build server.

The odd thing is that some "patch" deliveries include only the sources and binaries modified since the last major version, these called the "patch delta". This delta is then applied over the major version binaries.

The way we achieved this is to record the last revision of the major version, run an svn log since that revision to obtain the list of modified sources, then use a custom script that matches the source name (output from svn log) with its corresponding binary(ies), which are then copied in the "delta structure".

Before adapting the custom script to the new Maven project structure, I'd like to know if there is a Maven way to do all this?

Also, other ideas to generate this "delta structure" are much appreciated.


Solution

  • Your requirement is unique and I doubt any existing plugins will satisfy it.

    You could develop your own Maven plugin which will do this. Alternatively, if you have things ready which work with Ant, you could use Maven ANT Plugin although this would be regarded as abusing Maven as you really are building using ANT and can skip Maven entirely. I do not see any better alternatives.