@Mojo(name="projects-to-build",
aggregator=true)
public class ProjectsToBuildMojo
extends HashVerMojo
Given a database of previously successfully built hashversioned modules, produces a list of modules whose current versions are absent in this database (modules affected by changes since the successful builds).
The produced module list is saved to target/hashver-projects-to-build in the format suitable for the -pl (--projects) maven option, with intention to build only them:
mvn install -pl "$(cat target/hashver-projects-to-build)" -am
The database of previously successfully build modules is a directory specified by property dbDir.
The mojo also produces content to be copied into the db directory if the build of those modules succeeds:
cp -r targer/hashver-db-additions/* the-db-directory/
DIGEST_ALGO, HASHVER_JSON_FILE, HASHVER_PROP_FILE| Constructor and Description |
|---|
ProjectsToBuildMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
computeHashVers, executeImpl, hashVerKey, logInfo, logWarnpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class HashVerMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2020. All rights reserved.