No, this is not supported. The second version overrides the first. I
supposed we could add some extra metadata to the second item to
indicate that it was not supposed to replace the first item, but I
doubt we could figure this out automagically.

Justin

On Wed, Feb 8, 2012 at 7:23 PM, Ian Boston <[email protected]> wrote:
> Hi,
> Should the launchpad pluging be able to plackage multiple versions of
> the same jar ?
> The current BND tool has become quite expressive on version ranges for
> major numbers (correctly[1]), but where 2 versions of the same jar can
> exist in an OSGi container[2], the launchpad plugin doesn't appear to
> allow that to happen.
>
> In my list.xml I have
>
>        <bundle>
>            <groupId>commons-io</groupId>
>            <artifactId>commons-io</artifactId>
>            <version>2.1</version>
>        </bundle>
>        <bundle>
>            <groupId>commons-io</groupId>
>            <artifactId>commons-io</artifactId>
>            <version>1.4</version>
>        </bundle>
>
> But only 1.4 gets packaged.
>
> Ian
>
> 1. Some jars like Guava state no guarente of computability between
> major version numbers.
> 2. Some jars do things like start background management threads, so it
> might be dangerous to have 2 versions.

Reply via email to