Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddJaxbDependencies removes javax.xml.bind:jaxb-api when it is required by another dependency #504

Open
pstreef opened this issue Jun 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pstreef
Copy link
Contributor

pstreef commented Jun 28, 2024

What version of OpenRewrite are you using?

Moderne SaaS

How are you running OpenRewrite?

Moderne SaaS

What is the smallest, simplest way to reproduce the problem?

api("org.openrewrite:rewrite-maven:latest.integration")
implementation('javax.xml.bind:jaxb-api:latest.release')
implementation("net.logstash.logback:logstash-logback-encoder:latest.release")

What did you expect to see?

api("org.openrewrite:rewrite-maven:latest.integration")
implementation('javax.xml.bind:jaxb-api:latest.release')
implementation('jakarta.xml.bind:jakarta.xml.bind-api:4.0.2') {
    because("required by: rewrite-maven --> jackson-module-jaxb-annotations")
}
implementation("net.logstash.logback:logstash-logback-encoder:latest.release")

What did you see instead?

api("org.openrewrite:rewrite-maven:latest.integration")
implementation('jakarta.xml.bind:jakarta.xml.bind-api:4.0.2') {
    because("required by: rewrite-maven --> jackson-module-jaxb-annotations")
}
implementation("net.logstash.logback:logstash-logback-encoder:latest.release")

What is the full stack trace of any errors you encountered?

java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement

Are you interested in contributing a fix to OpenRewrite?

@pstreef pstreef added the bug Something isn't working label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant