[ https://issues.apache.org/jira/browse/SSHD-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17217269#comment-17217269 ]
Fr Jeremy Krieg commented on SSHD-1092: --------------------------------------- Hi Lyor, my apologies for the delay in response. To remove the OSGi metadata from these bundles, it should be sufficient to remove the execution for the maven-bundle-plugin for those two artifacts. At the moment it looks the execution is defined in the parent pom so you'd need to override the individual artifact poms to suppress it. This will stop the build from adding OSGi metadata to those jars. Alternatively, to add the "compile only" requirement, you need to override the maven-bundle-plugin execution for those artefacts to add the following to the {{<instructions>}} section of the plugin configuration: {{<Require-Capability>osgi.compile.time.only;filter:="(&(must.not.resolve=*)(!(must.not.resolve=*)))"</Require-Capability> }}This will add an OSGi requirement to the manifest that cannot be resolved and it will be immediately obvious. It would also be nice to have a reference in the doc for sshd-core and sshd-common that points to sshd-osgi, so that users of those jars are made aware of the OSGi-ready alternative. If necessary I can take a look at this but it won't be for a while. > 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 (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org