Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
maven-bundle-plugin-2.3.5
-
None
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.