Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-7538

Assembly Mojo parameter translatedUrls is unusable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.4.1
    • 4.3.8, 4.4.2
    • karaf
    • None

    Description

      Parameter translatedUrls of type Map<String, String> should contain URL as key wich can not be expressed by current Maven Map parameter conversion logic:

      https://maven.apache.org/guides/plugin/guide-java-plugin-development.html#maps

       

      Map parameters requires to use XML element name as map key. XML element name can't be URL by XML spec.

      So no even theoretical way to use translatedUrls, because key must URL (for Karaf) but key is XML element name (in Maven) and can't be URL by XML spec.

      I suggest to change translatedUrls type to Properties. Example config:

      
      <translatedUrls>
        <property>
          <name>jar:mvn:some.group/bundle-artefact/1.0.1!/features.xml</name>
          <value>file:${project.build.directory}/bundle-artefact/features.xml</value>
        </property>
      </translatedUrls>
       
      

       

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            vkonkov@citc.ru Vladimir Konkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: