pedro-w commented on PR #202: URL: https://github.com/apache/maven-jlink-plugin/pull/202#issuecomment-2230305065
I've been able to do it using your second suggested method, i.e. using `org.apache.maven.api.plugin.testing.MojoExtension.setVariableValueToObject` The calls now look like this: ``` JLinkMojo mojo = new JLinkMojo(); setVariableValueToObject(mojo, "launcher", "com.example.Launch"); ``` What do you think? I just couldn't get the first method, using the `@InjectMojo` annotations and associated mechanisms to work at all. It seemed to be a problem with the dependencies and their versions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org