Skip to content

3.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Nov 19:18
· 6 commits to master since this release
3.7.0

Exec Maven Plugin 3.7.0 raises the minimum Maven version to 3.9.0, adds three long-requested exec:java options, and fixes a batch of old bugs in how commands and Java programs are started. Java 8 is still enough to run it. Builds on Maven 3.6.3 to 3.8.x must stay on 3.6.4.

✨ Highlights

  • Maven 3.9.0 or later is required (#548). Older Maven versions fail at startup with a prerequisite error.
  • classpathDependencyExcludes removes chosen dependencies from the class path of exec:java and exec:exec (#562, requested in #68 by @pramodanarase).
  • mainClass from the manifest. When executableDependency is set and mainClass is not, the Main-Class attribute of that dependency's manifest is used (#563, #89 by @sewe).
  • keepClassLoaderOpen leaves the exec:java class loader open after the program returns, so shutdown hooks and background threads can still load classes (#561, #513 by @tzaeschke).
  • exec:java threading. The main class runs in a non-daemon bootstrap thread that the plugin waits for, so IDE builds such as m2e no longer interrupt it (#572, #526 by @sbj42). A program's own UncaughtExceptionHandler now receives its uncaught exceptions (#569, #141 by @dedeibel).
  • exec:exec fixes. async together with outputFile keeps the output file open until the process ends (#565, #63 by @tarioch). A relative executable resolves against workingDirectory again (#567, #92 by @deepakab03). Unquoted line breaks and tabs in commandlineArgs count as spaces instead of creating empty arguments (#571, #466 by @cebaa). A failed command logs its message at error level and keeps the stack trace for -X (#568).
  • Module path. Resource directories stay off the module path (#560, #534 by @inaldt), and the %modulepath token is handled (#532 by @pzygielo).
  • Documentation moved from APT to Markdown, and the module path argument file is now documented (#557, #566).

🚨 Removed

🚀 New features and improvements

🐛 Bug Fixes

📝 Documentation updates

👻 Maintenance

🔧 Build

📦 Dependency updates

Thanks to @pzygielo and @slachiewicz.

Full changelog