Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-351

Properties transformer

    XMLWordPrintableJSON

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

          Activity

            People

              elharo Elliotte Rusty Harold
              remm@apache.org Remy Maucherat
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m