Skip to content

Commit

Permalink
Use karaf-maven-plugin 4.2.6 to create an apache karaf feature for ja…
Browse files Browse the repository at this point in the history
…ckson-dataformat-xml (FasterXML#361)
  • Loading branch information
steinarb committed Sep 12, 2019
1 parent 5cea699 commit 4af3e67
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,23 @@ Some data-binding types overridden as well (ObjectMapper sub-classed as XmlMappe
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>provided</scope>
</dependency>
<!-- JAXB annotation introspector is needed too? -->
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<scope>provided</scope>
</dependency>
<!-- 20-Mar-2019, tatu: Stax-api been part of JDK since Java 6, so let's drop
dependency as it causes issues with JDK9+ module info
Expand Down Expand Up @@ -147,6 +151,10 @@ Some data-binding types overridden as well (ObjectMapper sub-classed as XmlMappe
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down
9 changes: 9 additions & 0 deletions src/main/feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0" name="${project.artifactId}">
<repository>mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/${jackson.version.core}/xml/features</repository>
<feature name="${project.artifactId}">
<!-- The jackson-module-jaxb-annotations feature depends on the jackson-databind, jackson-core and jackson-annotations features and will pull them all in -->
<feature>jackson-module-jaxb-annotations</feature>
<bundle start-level="80">wrap:mvn:com.github.relaxng/relaxngDatatype/2011.1</bundle>
</feature>
</features>

0 comments on commit 4af3e67

Please sign in to comment.