You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Grzegorz Grzybek (Jira)" <ji...@apache.org> on 2021/03/17 08:37:00 UTC

[jira] [Commented] (SSHD-1092) Keep OSGi metadata only for sshd-osgi

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

Grzegorz Grzybek commented on SSHD-1092:
----------------------------------------

[~gnodet] I think there's problem

If you check OSGi metadata in sshd-osgi 2.5.1 and 2.6.0, you'll notice, that 2.6.0 has full Export-Package, but absolutely no Import-Package.
sshd-core 2.5.1 had:
{noformat}
Import-Package = 
	javax.crypto,
	javax.crypto.interfaces,
	javax.crypto.spec,
	javax.management,
	javax.security.auth,
	javax.security.auth.callback,
	javax.security.auth.login,
	net.i2p.crypto.eddsa;resolution:=optional;version="[0.3,1)",
	net.i2p.crypto.eddsa.math;resolution:=optional,
	net.i2p.crypto.eddsa.spec;resolution:=optional;version="[0.3,1)",
	org.apache.tomcat.jni;resolution:=optional,
	org.bouncycastle.crypto.prng;resolution:=optional;version="[1.64,2)",
	org.bouncycastle.openssl;resolution:=optional;version="[1.64,2)",
	org.bouncycastle.openssl.jcajce;resolution:=optional;version="[1.64,2)",
	org.ietf.jgss,
	org.slf4j;version="[1.7,2)"
{noformat}

this was generated correctly when sshd-osgi was built, because sshd-core and sshd-common (and other bundles) had proper manifests. Without any Import-Package in sshd-osgi 2.6.0 we could have problems using Bouncy Castle (or in my case - mvn:net.i2p.crypto/eddsa/0.3.0)

> Keep OSGi metadata only for sshd-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
>            Assignee: Guillaume Nodet
>            Priority: Major
>             Fix For: 2.6.0
>
>   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
(v8.3.4#803005)

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