You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stuart McCulloch (JIRA)" <ji...@apache.org> on 2008/01/29 06:43:34 UTC
[jira] Updated: (FELIX-472) Embed-Dependency, Include-Resource and
inline
[ https://issues.apache.org/jira/browse/FELIX-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch updated FELIX-472:
-----------------------------------
Fix Version/s: 1.2.1
Affects Version/s: 1.2.0
> Embed-Dependency, Include-Resource and inline
> ---------------------------------------------
>
> Key: FELIX-472
> URL: https://issues.apache.org/jira/browse/FELIX-472
> Project: Felix
> Issue Type: Improvement
> Components: Maven Bundle Plugin
> Affects Versions: 1.2.0
> Reporter: Alin Dreghiciu
> Assignee: Stuart McCulloch
> Fix For: 1.2.1
>
>
> When using <Embed-Dependency> maven bundle plugin adds the necessary entries to Include-Resource bnd instruction. This entries are added by appending them to the end of Include-Resource string. This works fine by most of the cases but this will not allow an override of bundle resources due to the fact that the Include-Resource entries will be processed in the order specified so if I include a resource that exists also in the inlined dependencies, the resource will be overridden by the one in the dependency.
> E.g.
> I have a dependency (jar) that includes a class such as foo/Bar.class. Now if I want to override that class by my own I can do that by adding something like:
> Include-Resource: foo/Bar.class=target/classes/foo/Bar.class. But when I use the Embed dependency my specified Bar.class will be overridden by the one in the dependency.
> To be able to do this I suggest to use the same way of working as for {maven-resources}, let's say {maven-dependencies} that is expanded automatically to the necessary embed dependency entries. And to be compatible with current implementation in the placeholder {maven-dependencies} is not present then append it to the end of Include-Resource (as till now).
> In this way I can do something like Include-Resource: {maven-dependencies}, foo/Bar.class=target/classes/foo/Bar.class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.