Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.2.2
-
None
-
None
Description
When using:
<transformer implementation="org.apache.maven.plugins.shade.resource.properties.OpenWebBeansPropertiesTransformer" />
I get the error: Unable to parse configuration of mojo org.apache.maven.plugins:maven-shade-plugin:3.2.2:shade for parameter transformer: Cannot create instance of class org.apache.maven.plugins.shade.resource.properties.OpenWebBeansPropertiesTransformer: Class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter can not access a member of class org.apache.maven.plugins.shade.resource.properties.OpenWebBeansPropertiesTransformer with modifiers "protected"
The constructor indeed is protected.
Using the parent PropertiesTransformer seems to work:
<transformer implementation="org.apache.maven.plugins.shade.resource.properties.PropertiesTransformer"> <resource>META-INF/openwebbeans/openwebbeans.properties</resource> <ordinalKey>configuration.ordinal</ordinalKey> <defaultOrdinal>100</defaultOrdinal> <reverseOrder>false</reverseOrder> </transformer>
But the result META-INF/openwebbeans/openwebbeans.properties is not the same as with the old org.apache.openwebbeans.maven.shade.OpenWebBeansPropertiesTransformer. Also warnings are displayed:
[WARNING] openwebbeans-el22-2.0.14.jar, openwebbeans-impl-2.0.14.jar, openwebbeans-web-2.0.14.jar, tomcat-owb-2.0.14.jar define 1 overlapping resources: [WARNING] - META-INF/openwebbeans/openwebbeans.properties
Test project: https://github.com/apache/tomcat/tree/9.0.x/modules/owb
Attachments
Issue Links
- links to