Sean
Sean

Reputation: 1474

Karaf feature:install does nothing

I've downloaded ServiceMix 7.0.1 and followed the documentation. I need to install Camel features using:

karaf@root>feature:install camel-sql

But when I do that nothing happens. There's no response until I hit ctrl-c. The log file doesn't help either.

2020-03-25 14:13:25,709 | INFO  | Thread-16        | FeaturesServiceImpl              
   | 8 - org.apache.karaf.features.core - 4.0.9 | Adding features: camel-sql/[2.24.2,2.24.2]

And the online documentation is sparse to say the least.

Update

Using -v -t gives the below output, but still nothing thereafter:

karaf@root>feature:install -v -t camel-sql
Adding features: camel-sql/[2.24.2,2.24.2]

Upvotes: 0

Views: 1460

Answers (2)

Sneharghya Pathak
Sneharghya Pathak

Reputation: 1060

Can you please try bundle:install mvn:org.apache.camel/camel-sql/2.24.2

Upvotes: 0

Grzegorz Grzybek
Grzegorz Grzybek

Reputation: 6237

You have to update Maven configuration in etc/org.ops4j.pax.url.mvn.cfg in your ServiceMIX 7.0.1 installation. Change:

org.ops4j.pax.url.mvn.repositories= \
    http://repo1.maven.org/maven2@id=central, \
    http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, \
    http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, \
    http://zodiac.springsource.com/maven/bundles/release@id=gemini, \
    http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, \
    https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases, \
    https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases

to:

org.ops4j.pax.url.mvn.repositories= \
    https://repo1.maven.org/maven2@id=central, \
    http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, \
    http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, \
    http://zodiac.springsource.com/maven/bundles/release@id=gemini, \
    http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, \
    https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases, \
    https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases

repo1.maven.org no longer allows access using http. https is required.

Upvotes: 3

Related Questions