Thanks for the hints. For the record, here is my solution: - Added dependency org.apache.maven:maven-project - Added a field of type org.apache.maven.execution.RuntimeInformation to my Mojo and marked it as a @component (in JavaDoc) - Retrieved the version number with runtimeInformation.getApplicationVersion()
Cheers, Peter -- View this message in context: http://maven.40175.n5.nabble.com/How-can-a-plugin-detect-which-Maven-version-it-gets-run-with-tp3294669p3301873.html Sent from the Maven Developers mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
