Skip to content

Commit c94c99b

Browse files
committed
Use karaf-maven-plugin 4.2.6 to create an apache karaf feature for jackson-databind (FasterXML#2434)
1 parent 66f59d5 commit c94c99b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@
5959
it is dependent on transitively
6060
-->
6161
<version>${jackson.version.annotations}</version>
62+
<scope>provided</scope>
6263
</dependency>
6364
<dependency>
6465
<groupId>com.fasterxml.jackson.core</groupId>
6566
<artifactId>jackson-core</artifactId>
6667
<version>${jackson.version.core}</version>
68+
<scope>provided</scope>
6769
</dependency>
6870

6971
<!-- and for testing we need a few libraries
@@ -184,6 +186,10 @@
184186
<groupId>org.moditect</groupId>
185187
<artifactId>moditect-maven-plugin</artifactId>
186188
</plugin>
189+
<plugin>
190+
<groupId>org.apache.karaf.tooling</groupId>
191+
<artifactId>karaf-maven-plugin</artifactId>
192+
</plugin>
187193
</plugins>
188194
</build>
189195

src/main/feature/feature.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0" name="${project.artifactId}">
3+
<repository>mvn:com.fasterxml.jackson.core/jackson-annotations/${jackson.version.core}/xml/features</repository>
4+
<repository>mvn:com.fasterxml.jackson.core/jackson-core/${jackson.version.core}/xml/features</repository>
5+
<feature name="${project.artifactId}">
6+
<feature>jackson-annotations</feature>
7+
<feature>jackson-core</feature>
8+
</feature>
9+
</features>

0 commit comments

Comments
 (0)