rewrite-migrate-java
rewrite-migrate-java copied to clipboard
Recipe to update jaxb-maven-plugin to 2.5.0 (or higher)
There is a Maven plugin for generating code from XSDs and this must be updated to a version that supports Java 11:
Version 2.5.0
of the plugin supports Java 11.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.5.0</version>
</plugin>
See this issue for more details: https://github.com/mojohaus/jaxb2-maven-plugin/issues/43
For the time being, even though UpgradePluginVersion doesn't currently support referencing a version from a parent pom / pluginManagement, etc., would something like this declarative recipe be sufficient?
- org.openrewrite.maven.UpgradePluginVersion:
groupId: org.codehaus.mojo
artifactId: jaxb2-maven-plugin
newVersion: 2.5.x
@tkvangorder what do you think about Aaron's question?
I think this should be sufficient for now.