[ https://issues.apache.org/jira/browse/MSHADE-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold closed MSHADE-351. ---------------------------------------- > Properties transformer > ---------------------- > > Key: MSHADE-351 > URL: https://issues.apache.org/jira/browse/MSHADE-351 > Project: Maven Shade Plugin > Issue Type: Bug > Affects Versions: 3.2.2 > Reporter: Remy Maucherat > Assignee: Elliotte Rusty Harold > Priority: Major > Time Spent: 20m > Remaining Estimate: 0h > > When using: > {code:xml}<transformer > implementation="org.apache.maven.plugins.shade.resource.properties.OpenWebBeansPropertiesTransformer" > />{code} > 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: > {code:xml}<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>{code} > 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: > {noformat}[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{noformat} > > Test project: https://github.com/apache/tomcat/tree/9.0.x/modules/owb -- This message was sent by Atlassian Jira (v8.3.4#803005)