Skip to content

Commit 9888fa2

Browse files
committed
Use karaf-maven-plugin 4.2.6 to create an apache karaf feature for jackson-dataformat-xml (FasterXML#361)
1 parent 0bd3c3a commit 9888fa2

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

pom.xml

+8
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,23 @@ Some data-binding types overridden as well (ObjectMapper sub-classed as XmlMappe
3838
<dependency>
3939
<groupId>com.fasterxml.jackson.core</groupId>
4040
<artifactId>jackson-core</artifactId>
41+
<scope>provided</scope>
4142
</dependency>
4243
<dependency>
4344
<groupId>com.fasterxml.jackson.core</groupId>
4445
<artifactId>jackson-annotations</artifactId>
46+
<scope>provided</scope>
4547
</dependency>
4648
<dependency>
4749
<groupId>com.fasterxml.jackson.core</groupId>
4850
<artifactId>jackson-databind</artifactId>
51+
<scope>provided</scope>
4952
</dependency>
5053
<!-- JAXB annotation introspector is needed too? -->
5154
<dependency>
5255
<groupId>com.fasterxml.jackson.module</groupId>
5356
<artifactId>jackson-module-jaxb-annotations</artifactId>
57+
<scope>provided</scope>
5458
</dependency>
5559
<!-- 20-Mar-2019, tatu: Stax-api been part of JDK since Java 6, so let's drop
5660
dependency as it causes issues with JDK9+ module info
@@ -147,6 +151,10 @@ Some data-binding types overridden as well (ObjectMapper sub-classed as XmlMappe
147151
<groupId>org.moditect</groupId>
148152
<artifactId>moditect-maven-plugin</artifactId>
149153
</plugin>
154+
<plugin>
155+
<groupId>org.apache.karaf.tooling</groupId>
156+
<artifactId>karaf-maven-plugin</artifactId>
157+
</plugin>
150158
</plugins>
151159
</build>
152160

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.module/jackson-module-jaxb-annotations/${jackson.version.core}/xml/features</repository>
4+
<feature name="${project.artifactId}">
5+
<!-- The jackson-module-jaxb-annotations feature depends on the jackson-databind, jackson-core and jackson-annotations features and will pull them all in -->
6+
<feature>jackson-module-jaxb-annotations</feature>
7+
<bundle start-level="80">wrap:mvn:com.github.relaxng/relaxngDatatype/2011.1</bundle>
8+
</feature>
9+
</features>

0 commit comments

Comments
 (0)