Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.apache:karaf:karaf-4.4.5'
}
dependencies {
implementation("com.github.apache:karaf:karaf-4.4.5")
}
<dependency>
<groupId>com.github.apache</groupId>
<artifactId>karaf</artifactId>
<version>karaf-4.4.5</version>
</dependency>
libraryDependencies += "com.github.apache" % "karaf" % "karaf-4.4.5"
:dependencies [[com.github.apache/karaf "karaf-4.4.5"]]
Apache Karaf is a modulith runtime, supporting several frameworks and programming model (REST/API, web, spring boot, ...). It provides turnkey features that you can directly leverage without effort, packaged as mutable or immutable application.
For an Apache Karaf source distribution, please read BUILDING.md for instructions on building Apache Karaf.
For an Apache Karaf binary distribution, please read RELEASE-NOTES.md for installation instructions and list of supported and unsupported features.
The PDF manual is the right place to find any information about Karaf.
The examples provide a bunch of turnkey minimal applications that you can deploy in Apache Karaf and extend/template as you want.
To get involved in Apache Karaf:
We also have a contributor's guide.
Many thanks for using Apache Karaf.
The Apache Karaf Team