[ 
https://issues.apache.org/jira/browse/SLING-3883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-3883.
-------------------------------------
    Resolution: Fixed

Thanks for the patch, Marcel. It's applied in rev 1624456
Yes, the call at the end is still needed, we could change the code and put the 
interpolateProperties() to the place where new bundles are added, however I 
think it's not worth the effort.

> Merging partial bundle list with properties fails
> -------------------------------------------------
>
>                 Key: SLING-3883
>                 URL: https://issues.apache.org/jira/browse/SLING-3883
>             Project: Sling
>          Issue Type: Bug
>          Components: Maven Plugins and Archetypes
>    Affects Versions: Maven Launchpad Plugin 2.3.0
>            Reporter: Marcel Reutegger
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: Maven Launchpad Plugin 2.3.2
>
>         Attachments: SLING-3883.patch
>
>
> Merging a partial bundle list fails when the current list contains references 
> to properties e.g. in the POM.
> In my case I want to override a dependency and have the actual version 
> defined as a property in the POM. I get an error like this when I run my 
> build:
> {noformat}
> Caused by: java.lang.IllegalArgumentException: invalid qualifier: 
> ${oak_version}
>       at org.osgi.framework.Version.validate(Version.java:188)
>       at org.osgi.framework.Version.<init>(Version.java:154)
>       at 
> org.apache.sling.maven.projectsupport.bundlelist.BaseBundleList.add(BaseBundleList.java:93)
>       at 
> org.apache.sling.maven.projectsupport.bundlelist.BaseBundleList.merge(BaseBundleList.java:64)
>       at 
> org.apache.sling.maven.projectsupport.AbstractUsingBundleListMojo.initBundleList(AbstractUsingBundleListMojo.java:269)
>       at 
> org.apache.sling.maven.projectsupport.AbstractUsingBundleListMojo.execute(AbstractUsingBundleListMojo.java:172)
> {noformat}
> The actual version is resolved too late in 
> {{AbstractUsingBundleListMojo.initBundleList()}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to