I might have misunderstood you.  
apache-karaf-3.0.0-SNAPSHOT/system/org/apache/karaf/shell/org.apache.karaf.shell.ssh/3.0.0-SNAPSHOT/org.apache.karaf.shell.ssh-3.0.0-SNAPSHOT.jar
 is present in the trunk "old" minimal assembly.  Based on this I assume it 
should work.  If it's not supposed to be there at all, I can just remove it 
from the "new" apache-karaf-minimal assembly and make the dependencies of 
org.apache.karaf.shell.ssh on sshd-core and mina compile scope rather than 
provided scope again.

I've been experimenting with trying to get the (new) apache-karaf-minimal 
assembly to fully start and I can't yet.  I'm wondering if sshd-core is 
actually optional.

In an assembly missing sshd-core and mina, you get an exception like this 
trying to start org.apache.karaf.shell.ssh (which I believe you are claiming 
should start, below)
 Unresolved constraint in bundle org.apache.karaf.shell.ssh [17]: Unable to 
resolve 17.0: missing requirement [17.0] package; 
(&(package=org.apache.sshd)(version>=0.5.0)(!(version>=1.0.0)))

I tried adding this to the Import-Package instructions:

                            org.apache.sshd.*;resolution:=optional,
                            
org.apache.sshd.server.keyprovider;resolution:=optional,
                            org.apache.sshd.server.jaas;resolution:=optional,


in shell/ssh but now although the bundle itself starts the blueprint stuff 
fails (according to list -t 0).  I don't see any information about why.

This makes me think that sshd-core is currently a required bundle for any ssh 
functionality.  Am I missing something?

thanks
david jencks


On Apr 5, 2011, at 12:28 AM, Ioannis Canellos wrote:

> Hi David,
> 
> I have worked on the minimal distribution and the idea behind it was to keep
> it as minimal as possible (in terms of size).
> If a user of the minimal distribution wished to use the ssh feature (which
> was optional in the minimal distro) could always install it (and it
> transitive dependencies) afterwards.
> 
> So I will agree with JB that it makes sense that these bundles are missing
> from the minimal distribution.
> 
> On Tue, Apr 5, 2011 at 10:21 AM, Jean-Baptiste Onofré 
> <[email protected]>wrote:
> 
>> Hi David,
>> 
>> Karaf can act as an OBR client. But it's optional. If no OBR are provided,
>> Karaf doesn't use it.
>> So, I think it's "normal" that OBR is not part of the minimal distribution.
>> 
>> For sshd, it's the same. In a minimal distro, the users doesn't expect to
>> have the SSH server started.
>> 
>> My 0.02 cents :)
>> 
>> Regards
>> JB
>> 
>> 
>> On 04/05/2011 09:19 AM, David Jencks wrote:
>> 
>>> I spent some time making the framework kar contents match better with the
>>> minimal server from the old style karaf assembly and think there might be
>>> missing bundles.  I'm hoping to convince everyone to move to the new style
>>> assemblies so I'm not concerned with actually fixing the old one but want to
>>> make sure that the following jars should be in the minimal server:
>>> 
>>> Here are the bits of the mvn dependency:tree I think are more correct than
>>> the old style karaf assembly contents:
>>> 
>>> [INFO] +-
>>> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>>> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>>> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>>> 
>>> sshd-core and mina-core are missing from the minimal assembly
>>> 
>>> [INFO] +-
>>> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>>> [INFO] |  +-
>>> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>>> [INFO] |  \-
>>> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>>> 
>>> bunderepository and karaf obr are missing from the minimal assembly.
>>> 
>>> Should these 4 jars be in the minimal server?
>>> 
>>> Other than this and a few config files I haven't sorted through yet the
>>> newer assemblies/apache-karaf-minimal appears to me to be the same as the
>>> old one.
>>> 
>>> thanks
>>> david jencks
>>> 
>> 
> 
> 
> -- 
> *Ioannis Canellos*
> *
> http://iocanel.blogspot.com
> 
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> Apache ServiceMix <http://servicemix.apache.org/>  Committer
> *

Reply via email to