I don't need to test it with java. How would I test this change with
maven? Sorry -- not very familiar with these tools.

On Sat, Jun 21, 2014 at 5:51 PM, Andrew Gaul <g...@apache.org> wrote:
> You need to include karaf in your classpath and probably many other
> dependencies.  Do you need to test this with java or can you run your
> tests via maven?
>
> On Sat, Jun 21, 2014 at 05:44:17PM -0700, Timur Alperovich wrote:
>> Hi there,
>>
>> I'm hoping this would be quick for someone who knows how this works,
>> but I got stuck trying to run one of the commands in jclouds-karaf
>> after making a change to the source code in
>> BlobStoreCommandWithOptions. Here's the invocation I'm trying:
>> java -cp 
>> feature/target/features-repo/org/apache/jclouds/jclouds-core/1.8.0-SNAPSHOT/jclouds-core-1.8.0-SNAPSHOT.jar:commands/target/commands-1.8.0-SNAPSHOT.jar
>> org.jclouds.karaf.commands.blobstore.ContainerListCommand
>>
>> And the error is:
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/karaf/shell/console/AbstractAction
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.karaf.shell.console.AbstractAction
>>
>> Is there an additional jar I'm missing in the classpath? I found that
>> this should be coming from the ChefCommandBase class, but not sure
>> what I'm doing wrong in terms of pulling it in.
>>
>> I also looked at the invocation of jclouds-cli, and found that it
>> pulls in this additional jar:
>> org.apache.karaf.shell.console-2.3.2.jar, however, I can't find it in
>> the karaf tree. I did run mvn package beforehand.
>>
>> Where does that jar get created? Or is there a better way to go about
>> this or documentation I could skim on how this works?
>>
>> Thank you!
>>
>> --
>> Cheers,
>> Timur
>
> --
> Andrew Gaul
> http://gaul.org/



-- 
Cheers,
Timur

Reply via email to