Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added note how to use Karaf 3.x

...

...

Starting Apache Karaf via bin/karaf open the karaf console.
The following command will install all dependencies and the Corpus Server:

  • If using Karaf 2.x
    • features:refreshUrl file:///home/xyz/dev/opennlp/sandbox/corpus-server/feature.xml
    • features:install opennlp-corpus-server
  • If using Karaf 3.x
    • feature:repo-refresh file:///home/xyz/dev/opennlp/sandbox/corpus-server/feature.xml
    • feature:install opennlp-corpus-server

The corpus-server itself is just an interface layer which can expose an actual
Corpus Server implementation via its REST API to vairous tools which know this API.

...

This can be done with these commands:

  • If using Karaf 2.x
    • features:refreshUrl file:///home/xyz/dev/opennlp/sandbox/corpus-server-impl/feature.xml
    • features:install opennlp-corpus-server-impl
  • If using Karaf 3.x
    • feature:repo-refreshfile:///home/xyz/dev/opennlp/sandbox/corpus-server-impl/feature.xml
    • feature:install opennlp-corpus-server-impl

The last command can take several minutes to complete.

The "list" command will now show the Corpus Server:
....
[  76] [Active     ] [            ] [   60] OpenNLP Corpus Server (0.0.1.SNAPSHOT)
[  77] [Active     ] [            ] [   60] Apache Derby 10.8 (10.8.1000002.1095077)
[  78] [Active     ] [            ] [   60] OpenNLP Corpus Server Implementation (0.0.1.SNAPSHOT)

...