How to get maven 3.0 only for building modules with local scm changes

In maven 2.x, you can use the reactor: make-scm changes to build only modules with local scm changes.

Running this module with maven 3.0.3 results in an error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-reactor-plugin:1.0 :make-scm-changes (default-cli) on project my-project: The parameters 'artifactLis t', 'folderList' for goal org.apache.maven.plugins:maven-reactor-plugin:1.0:make -scm-changes are missing or invalid -> [Help 1] 

This message seems to indicate the absence of equivalent functions for maven 3.0 http://mail-archives.apache.org/mod_mbox/maven-dev/201011.mbox/% 3calpine.OSX.2.00.1011051125410.368@dfab-2.local % 3e

Is there a replacement in maven 3.0 to be able to create only modules that have local scm changes?

+4
source share
1 answer

You can flip your own using the shell script that is around:

 svn --non-interactive status 

Your shell script might do something like this:

 PROJECT_LIST=`svn --non-interactive status | filter out target dir \ | cut out status \ | cut out subdirectories \ | replace line endings with ','` mvn $* --projects=$PROJECT_LIST 

I have not tested this, but I know that this is possible in theory.

0
source

All Articles