Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add migration of maven-jaxb2-plugin in JakartaEE9 recipe

未关闭
#780 2 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
build-system

调研方向

从 issue 中链接的 JakartaEE9 recipe 开始,检查其现有 migration recipe 的组织方式。将两个 Maven plugin 示例作为预期的转换,包括 namespace-prefix 依赖项的版本,并验证该 recipe 能够处理所示的配置。

由索引模型根据 Issue 内容生成。

描述

enhancement recipe

org.jvnet.jaxb2.maven2:maven-jaxb2-plugin is a plugin used to generate Java code. It is notably generating a bunch of javax.xml.* code.

To generate code with jakarta namespace, we currently need to migrate to another plugin
com.helger.maven:jaxb40-maven-plugin because the original one seems to no more be active enough, the PR to migrate is still pending.

In case org.jvnet.jaxb2_commons:jaxb2-namespace-prefix is used in combination of it, this one needs to be updated to version 2.0

I think it can be a nice addition to JakartaEE9 recipe.

Example of a typical use case:

<plugin>
                    <groupId>org.jvnet.jaxb2.maven2</groupId>
                    <artifactId>maven-jaxb2-plugin</artifactId>
                    <version>0.15.2</version>
                     <dependencies>
                         <dependency>
                             <groupId>org.jvnet.jaxb2_commons</groupId>
                             <artifactId>jaxb2-namespace-prefix</artifactId>
                            <version>1.3</version>
                         </dependency>
                     </dependencies>
</plugin>
<plugin>
                    <groupId>com.helger.maven</groupId>
                    <artifactId>jaxb40-maven-plugin</artifactId>
                    <version>0.16.1</version>
                     <dependencies>
                         <dependency>
                             <groupId>org.jvnet.jaxb2_commons</groupId>
                             <artifactId>jaxb2-namespace-prefix</artifactId>
                            <version>2.0</version>
                         </dependency>
                     </dependencies>
</plugin>
主要语言
Java
星标
156
派生
129
平均合并
14 小时 30 分钟
30 天内合并 PR
43

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openrewrite/rewrite-migrate-java 的其他 Issue

查看 openrewrite/rewrite-migrate-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。