This is definitely a helpful thing to be able to do. I wish Maven would make some effort to keep up with what jobs it's already done and doesn't need to repeat vs. what it has left to do. This is a fundamentally automatable job that is very difficult for people to do correctly, so everyone just `mvn clean install` on the root project every time, or avoids using Maven from the command line altogether.
Similar tool: https://github.com/vackosar/gitflow-incremental-builder - works well overall for my team's workflow, thought I don't think devs have played with it; it's only used in CI for certain jobs right now. Note that some plugins at some versions don't work correctly if you skip some projects, e.g. we mitigate https://issues.apache.org/jira/browse/MENFORCER-306 by ensuring the root pom is in the build and disable maven-enforcer-plugin by default on dev machines; another way to avoid the problem is to use any previous version of enforcer (we need the latest because of https://issues.apache.org/jira/browse/MENFORCER-268). (Replying here as I'm not a Reddit user - sorry!) On Sun, Oct 20, 2019 at 11:44 AM Paul Hammant <[email protected]> wrote: > https://www.reddit.com/r/Maven/comments/dklz1e/quicker_local_maven_builds/ > > ^ A small script to help you have quicker Maven invocations for changes in > your (Git) checkout on your dev workstation. > > Also, a reminder that there is a sub-reddit for Maven now - > https://www.reddit.com/r/Maven/ > > - Paul >
