slawekjaranowski commented on issue #13459: URL: https://github.com/apache/maven/issues/13459#issuecomment-6142019544
> In Maven 3, plugin parameters annotated with @Parameter on complex objects (nested configuration classes like <archive>) are injected by Plexus's EnhancedComponentConfigurator via reflection. This configurator requires either public fields or public setters on the target class, because it runs in a different classloader/module and cannot access package-private members without setAccessible(true). Is it true? I see https://github.com/apache/maven-jar-plugin/blob/maven-jar-plugin-3.x/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java#L88-L89 ```java @Parameter private MavenArchiveConfiguration archive = new MavenArchiveConfiguration(); ``` without setters .... -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
