The following will bind scm:checkin to the install phase. As long as the repository is a file:// scheme (at least for Mercurial, according to the code), a push is not performed during scm:checkin. Define properties used in the following steps: maven install:install auto-checkin.file:///path/to/local/repository.local> hg.type>
The can be anything you choose. It isn’t ideal to be completely fixed as commits should include meaningful messages as to what changes were made. But, I do believe there should be a standard message included in auto-commits to identify it as such. Just modify the property from step 1. before each install. This is just a standard scm node for a Maven-based project. Since this is concerned only with a local repository, the URLs are all the same. scm:${repository.type}:${repository.local}scm:${repository.type}:${repository.local}scm:${repository.type}:${repository.local}
This is plug-in that runs during the install phase that performs the commit. It’ll simply execute the proper scm checkin based on the definition in step 2. org.apache.maven.pluginsmaven-scm-plugin1.2installcheckin
One problem is that I receive the following. DEPRECATED: Binding aggregator mojos to lifecycle phases in the POM is considered dangerous. This feature has been deprecated. Please adjust your POM files accordingly. I’m looking into how to resolve it but, for now, it works and I’m going with it. link|flag
edited Dec 26 ‘09 at 0:32
Peter Mortensen
2,9022522
answered Dec 23 ‘09 at 2:14
nicerobot
1,113139
Filed jira.codehaus.org/browse/MNG-4504 for “DEPRECATED” message. – nicerobot Dec 26 ‘09 at 0:19