[Created] (MSHADE-351) Properties transformer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Created] (MSHADE-351) Properties transformer

Hudson (Jira)
Remy Maucherat created MSHADE-351:
-------------------------------------

             Summary: 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


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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)