question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow stax2-api 4.1

See original GitHub issue

In jackson-dataformat-xml 2.9.6 the OSGI Import-Package directive in MANIFEST.MF limits stax2 to versions 3.1 - 4. Please expand it to allow 4.1 as well.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
markwooncommented, Jul 6, 2018

@cowtowncoder Unfortunately I’m mainly an OSGI consumer. I also don’t use maven much.

That said, adding the following to pom.xml seems to make the right changes to allow stax2 3.1.4 and up:

    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <extensions>true</extensions>
      <configuration>
        <instructions>
          <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
          <Import-Package>
            org.codehaus.stax2;version="[3.1.4,)",
            org.codehaus.stax2.io;version="[3.1.4,)",
            org.codehaus.stax2.ri;version="[3.1.4,)",
            *
          </Import-Package>
        </instructions>
      </configuration>
    </plugin>

From a maintenance standpoint, this is probably not ideal because you’ll have to update the list of packages whenever that changes.

0reactions
cowtowncodercommented, May 20, 2020

Stax2-api dependency has been updated to 4.1 (and later) in 2.10+.

Read more comments on GitHub >

github_iconTop Results From Across the Web

stax2-api : 4.1 - org.codehaus.woodstox - Maven Central
Stax2 API - tax2 API is an extension to basic Stax 1.0 API that adds significant new functionality, such as full-featured bi-direction validation...
Read more >
Stax2BlockSource (Stax2 API 4.2.1 API) - javadoc.io
This is the mid-level abstract base class for Stax2Source s that an be used to access fixed-length in-memory data sources, such as byte...
Read more >
org.codehaus.woodstox:stax2-api - Open Source Insights
tax2 API is an extension to basic Stax 1.0 API that adds significant new functionality, such as full-featured bi-direction validation interface ...
Read more >
org.codehaus.stax2.validation.AttributeContainer Maven / Gradle / Ivy
... Group: org.codehaus.woodstox ➦ Artifact: stax2-api ➦ Version: 4.1. ... Interface that is used to allow validators to do attribute defaulting.
Read more >
13 - Stack Overflow
I had a conflict on the org.codehaus.woodstox:stax2-api which was included in version ... and in version 4.1 within com.sun.xml.ws:rt .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found