


Wicket jar files are packaged as OSGi bundles and are ready to be installed in OSGi environments, such as Apache Karaf.

Wicket provides a Karaf feature file to assist in installation and building Karaf distributions that include Wicket.

=== Add Wicket feature

[source,subs="quotes"]
----
karaf@root()> repo-add mvn:org.apache.wicket/wicket/_version_/xml/features
Adding feature url mvn:org.apache.wicket/wicket/_version_/xml/features
----

=== Verify Wicket feature

[source,subs="quotes"]
----
karaf@root()> feature:list | grep -i wicket
wicket-core    │ _version_ │    │ Uninstalled │ org.apache.wicket.wicket-_version_ │
----

=== Install Wicket feature

[source,subs="quotes"]
----
karaf@root()> feature:install wicket-core
----

=== Troubleshooting

Inspect the wicket-core feature

[source,subs="quotes"]
----
karaf@root()> feature:info wicket-core
Feature wicket-core _version_
Feature has no configuration
Feature has no configuration files
Feature has no dependencies.
Feature contains followed bundles:
  ... _wicket dependency bundles_ ...
  mvn:org.apache.wicket/wicket-util/_version_
  mvn:org.apache.wicket/wicket-request/_version_
  mvn:org.apache.wicket/wicket-core/_version_
  mvn:org.apache.wicket/wicket-auth-roles/_version_
  mvn:org.apache.wicket/wicket-devutils/_version_
  mvn:org.apache.wicket/wicket-extensions/_version_
  mvn:org.apache.wicket/wicket-jmx/_version_
Feature has no conditionals.
----

Wicket feature Maven coordinates

The Wicket feature may be referenced from Maven to include in Karaf assemblies.

[source,xml]
----
<dependency>
  <groupId>org.apache.wicket</groupId>
  <artifactId>wicket</artifactId>
  <version>...version...</version>
  <type>xml</type>
  <classifier>features</classifier>
</dependency>
----

=== Reference links

https://karaf.apache.org[Apache Karaf website]

https://karaf.apache.org/manual/latest/provisioning[Apache Karaf features]


