Is there any way to access a plugins properties within the execution method?
I have a base mojo that has some properties, like so:
@Parameter(defaultValue = "DEV", property = "dbEnvironment", required = true)
protected Environment dbEnvironment;
@Parameter(defaultValue = "true", property = "validate")
protected boolean validate;
The child mojo then adds some additional properties. I'd like to be able to read all of these properties, to validate them, but it's not obvious how to do so. When I run it, with debug, I see this:
[DEBUG] Configuring mojo 'com.company.tools:something-maven-plugin:0.2.11-SNAPSHOT:export-job' with basic configurator -->
[DEBUG] (f) dbEnvironment = DEV
[DEBUG] (f) jobName = scrape_extract
[DEBUG] (f) project = MavenProject: com.company.tools:something-maven-plugin-it:1.0-SNAPSHOT @ /Users/selliott/intellij-workspace/tools-something-maven-plugin/something-maven-plugin/src/it/simple-it/pom.xml
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@3fd2322d
[DEBUG] (f) validate = true
[DEBUG] -- end configuration --
So, it looks like those props are somewhere, but where? I've tried getting them from the session, session.settings, session.request to no avail.