[ 
https://issues.apache.org/jira/browse/KARAF-7538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17598751#comment-17598751
 ] 

ASF subversion and git services commented on KARAF-7538:
--------------------------------------------------------

Commit a149251b82562358dc1409da34d6b5a0edc402c1 in karaf's branch 
refs/heads/main from Jean-Baptiste Onofré
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=a149251b82 ]

Merge pull request #1609 from cit-consulting/KARAF-7538

[KARAF-7538] Use Properties type for translatedUrls assembly Mojo parameter

> Assembly Mojo parameter translatedUrls is unusable
> --------------------------------------------------
>
>                 Key: KARAF-7538
>                 URL: https://issues.apache.org/jira/browse/KARAF-7538
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.4.1
>            Reporter: Vladimir Konkov
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> 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:
> {code:java}
> <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>
>  
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to