rewrite-migrate-java icon indicating copy to clipboard operation
rewrite-migrate-java copied to clipboard

Recipe to update jaxb-maven-plugin to 2.5.0 (or higher)

Open tkvangorder opened this issue 3 years ago • 3 comments

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

tkvangorder avatar Jun 12 '21 00:06 tkvangorder

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

aegershman avatar Jun 17 '21 16:06 aegershman

@tkvangorder what do you think about Aaron's question?

traceyyoshima avatar Mar 08 '22 00:03 traceyyoshima

I think this should be sufficient for now.

tkvangorder avatar Mar 10 '22 22:03 tkvangorder