Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3092

Support relative paths in "urlTemplate" parameter of "bundle:index" goal in maven bundle plugin

    XMLWordPrintableJSON

Details

    Description

      Currently the "index" goal of the "maven-bundle-plugin" supports "%p", "%f" (and others) in the "urlTemplate" parameter. This allows the developer to (re)create an OBR repository using a custom URL template, and is very useful.

      The "%p" parameter, however, is absolute, and contains the entire local path - such as "file://.../mydir/mysubdir", which is not so useful when one wants to generate a custom URL, and only wants a relative path (such as "com/mycompany/mygroupid/myversion".

      I'm therefor submitting a patch which adds supports for another placeholder: "%rp" (shorthand for relative-path). This placeholder will resolve to the relative path between the actual file, and the root of the repository being indexed. In general it would be better to fix the "%p" placeholder, but to maintain compatibility I guess a new one is preferred.

      Attachments

        1. patch
          1 kB
          Arik Kfir

        Activity

          People

            mcculls Stuart McCulloch
            arikkfir Arik Kfir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified