mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fr Jeremy Krieg (Jira)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-1092) Split package causing use conflict in OSGi
Date Thu, 15 Oct 2020 23:41:00 GMT

    [ https://issues.apache.org/jira/browse/SSHD-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17215080#comment-17215080

Fr Jeremy Krieg commented on SSHD-1092:

Thank you very much for the pointer to sshd-osgi. That does indeed seem to do the trick.

However, I still think there are some issues here that need to be fixed. The problem is that
sshd-core and sshd-common actually have OSGi metadata. An unsuspecting user (eg, myself!)
might see that metadata and assume that the jars can be used as-is as bundles, when in fact
they cannot. If the jars are not meant to be used as OSGi bundles, then it would be better
if they didn't have any OSGi metadata at all, or at least if they included the special requirement {{osgi.compile.time.only;filter:="(&(must.not.resolve=\*)(!(must.not.resolve=\*)))"}}
to make it clear that they are not intended to resolve.

> Split package causing use conflict in OSGi
> ------------------------------------------
>                 Key: SSHD-1092
>                 URL: https://issues.apache.org/jira/browse/SSHD-1092
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.5.1
>         Environment: Windows 10
> Eclipse 2020-09
> Bndtools 5.3.0 snapshot
>            Reporter: Fr Jeremy Krieg
>            Priority: Major
>   Original Estimate: 24h
>  Remaining Estimate: 24h
> I started trying to use the sshd modules in an OSGi project.
> I discovered that there is a split package - the package {{org.apache.sshd.common}} is
present and exported in both {{org.apache.sshd.core}} and {{org.apache.sshd.common}}. Core
depends on the package {{org.apache.sshd.client.hosts}}, which has a uses constraint on the
{{org.apache.sshd.common}} package. Because this package is exported by both the core and
client packages, the resolver is unable to resolve the core bundle.

This message was sent by Atlassian Jira

To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org

View raw message