Repository navigation
Exec Maven Plugin 3.8.0 can run exec:java in the background for integration tests, passes long command lines through an argument file, and never calls Thread.stop().
✨ Highlights
- Background mode for
exec:java. Withasyncset, the program starts and the build waits untilasyncStartChecksucceeds (atcp://orhttp(s)://address, or a script), the program ends or throws, orasyncStartTimeout(60000 ms by default) runs out. The newexec:java-stopgoal, bound topost-integration-test, stops the program and fails the build if it threw (#586). argumentsFileforexec:exec. When set, the arguments are written to a file and passed as@file, which avoids the operating system's command line length limit, notably on Windows. The program must understand@argument files, asjavadoes (#518 by @IvoLimmen).- No more thread stopping.
stopUnresponsiveDaemonThreadsis deprecated and has no effect on any JDK; setting it to true logs a warning. A thread that is still alive after the interruption anddaemonThreadJoinTimeoutis logged with its name and stack trace, and the newfailOnLingeringThreads(default false) fails the build instead (#589). - Compact source classes run with
exec:javaon Java 25 (#515 by @mihxil). - Arguments after a path option are kept.
-p,--module-path,-cpor-classpathfollowed by another option no longer swallows that option (#570). - Updated libraries: plexus-utils 4.2.0 and plexus-xml 3.1.1 (#573).
- Documentation moved to Markdown and now covers the options added in 3.7.0 (#582).
- Requirements are unchanged: Maven 3.9.0 or later and Java 8 or later.
🚀 New features and improvements
- Retire thread stopping from exec:java (#589) @slachiewicz
- Run exec:java in the background with a stop goal (#586) @slachiewicz
- Arguments in arguments file (#518) @IvoLimmen
🐛 Bug Fixes
- Compact classes not working (#515) @mihxil
- Keep the argument after a path option that is followed by another option (#570) @slachiewicz
📝 Documentation updates
- Remove the metadata block from the site pages (#594) @slachiewicz
- Refresh README and site, document the 3.7.0 options, convert the site pages to Markdown, require documentation updates (#582) @slachiewicz
- Fix stale documentation references (#581) @slachiewicz
👻 Maintenance
- Restore spacing around operators in IT scripts (#591) @slachiewicz
- Move off the deprecated MavenProject scope getters (#593) @slachiewicz
- Modernize Groovy IT scripts (#590) @slachiewicz
- Set the next version to 3.8.0 (#587) @slachiewicz
- Drop invalid invoker.buildResult from the envscript IT (#585) @slachiewicz
- Move mexec-29, mexec-66 and mexec-70 to unit tests (#584) @slachiewicz
- Use JUnit 5 assertThrows in ExecMojoTest failure tests (#579) @slachiewicz
- Remove stale commented-out artifact identifier line (#578) @slachiewicz
- Use a JUnit temporary directory in ExecMojoTest (#576) @slachiewicz
- Replace utility calls with the JDK and modernize tests (#575) @slachiewicz
- Apply OpenRewrite cleanups (#574) @slachiewicz
🔧 Build
- Add PR release-note labeler (#580) @slachiewicz
📦 Dependency updates
- Bump plexus-utils to 4.2.0 and plexus-xml to 3.1.1 (#573) @slachiewicz
Thanks to @IvoLimmen, @mihxil, @slachiewicz, Ivo Limmen and @kaoh.