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

[MINSTALL-198] maven-embedder: second install-file overrides first one

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

从链接的 MRE 开始,复现两次连续的 install:install-file 调用,并将嵌入式行为与 issue 中显示的命令行命令进行比较。跟踪第一次调用的参数如何为第二次调用保留;完成的标准是第二次安装使用其自身的构件元数据,并且不会覆盖本地 Maven 仓库中的第一个 JAR。

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

描述

bug priority:major

Franz-Josef Färber opened MINSTALL-198 and commented

I am using the maven install:install-file goal with both cases: Jar-Files containing a pom-file or not, as described in https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html .

While on the command-line the following works:

mvn install:install-file -Dfile=somefile.jar -DgroupId=somegroup -DartifactId=someartefact -Dversion=1.0.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file -Dfile=someotherfile-containing-a-pom-file.jar

using maven-embedder, it does not work: On the second install:install-file goal, the -DgroupId, -Dartifact parameters from the first call are still somehow present and trigger overriding the first Jar file in the local maven repo.

MRE: https://github.com/fjf2002/78041113-maven-embedder-maven-install-plugin-bug-second-install-file-overrides-first-one


No further details from MINSTALL-198

主要语言
Java
星标
43
派生
44
平均合并
1 天 16 小时
30 天内合并 PR
13

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

apache/maven-install-plugin 的其他 Issue

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

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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