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

[MPLUGIN-350] Extend @Parameter with input/output option

未关闭
#653 18 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
java

调研方向

首先定位 @Parameter 注解以及 issue 中描述的 plugin.xml 生成或表示方式。确定应如何表示输入参数和输出参数,同时保留现有的参数格式,包括输入参数如何引用受影响的输出。完成标准是元数据能够表达这些关系,并保持向后兼容。

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

描述

enhancement

Robert Scholte opened MPLUGIN-350 and commented

By knowing if parameters are input or output parameters, it is possible to improve our builds. It will be possible to create DAGs and chain the execution blocks much smarter.
The Maven Extension created by Gradle heavily relies on this kind of information.

It is probably easier to use new annotations instead of adding a (required) status-field to @Parameter
Looking at the plugin.xml it looks quite easy to solve this and stay backwards compatible: the file looks now like:

<parameters>
  <parameter>
    ...
  </parameter>
</parameters>

With plexus-magic the following should still work:

<parameters>
  <input>
    ...
  </input>
  <output>
    ...
  </output>
</parameters>

Input parameters should refer to the outputParameter it effects. E.g. if a inputParameter has only effect on the logger and it is changed, it will not effect the resulting artifact, which could improve faster incremental builds.


0 votes, 6 watchers

主要语言
Java
星标
63
派生
76
平均合并
20 小时 52 分钟
30 天内合并 PR
21

环境准备

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

从这里开始

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

apache/maven-plugin-tools 的其他 Issue

查看 apache/maven-plugin-tools 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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