Speeds up Maven successive invocations by "keeping a copy of Maven running in the background" using nailgun (avoiding reloading plugin classes and taking advantage of a warmed up jvm).
Once installed, you can use
nvn instead of
nvn will transparently start
nvn-server in the background if it
isn't already started, and then on hand all the command line args to nvn-server.
nvn --stop with no other args.
Currently is built with Maven 3.0.5, but shouldn't be too hard to make it switchable to other versions (pull requests welcome!) Note that there's some code copy pasted and modified (1 line commented out) from Maven 3.0.5, so you'll need to update that most likely if you go down that path.
See also mvnsh, but the approach in this project doesn't replace your shell.
Forked from nigelzor's maven-nailgun (many thanks!) to add packaging and tests.
- gcc compiler
- bash and standard unix utils: nc, lsof, awk, xargs, sed, kill, cp
- nothing listening on port 45785 (
git grep MVN_NAILGUN_PORTto see where to change this)
- a mvn to bootstrap with
To start using:
mvn packageand follow instructions under 'next steps'
To run integration tests or get a demo:
Installing when mvn package doesn't work:
For use on Windows / other times when the packaging scripts fail.
mvn pre-packageto create
nailgun-server-0.9.1.jar(should be in your maven repo) and
- in maven's /bin/, make copies of
- start the server with
- download and compile the nailgun client from source to
- whenever you would call
mvn foo, now use
ng com.asparck.maven.nailed.Client foo