Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.jacoco:jacoco-maven-plugin:1.0.2-SNAPSHOT找不到, #29

Open
GskFID opened this issue Apr 7, 2022 · 7 comments
Open

org.jacoco:jacoco-maven-plugin:1.0.2-SNAPSHOT找不到, #29

GskFID opened this issue Apr 7, 2022 · 7 comments

Comments

@GskFID
Copy link

GskFID commented Apr 7, 2022

image
image

@AdamoChen
Copy link

使用项目 jacoco/maven-plugin/ 目录下,定制过的jar, 需要解压再放入本地maven库。

@eye-gu
Copy link

eye-gu commented Jun 7, 2022

放进去后报错 com.xiaoju 的依赖找不到

Failed to read artifact descriptor for org.jacoco:jacoco-maven-plugin:jar:1.0.2-SNAPSHOT: Could not find artifact com.xiaoju:base-pom:pom:0.0.1 in mirror

@AdamoChen
Copy link

我把那个parent依赖注释了

@c350147221
Copy link

image

image

本地maven仓库已放定制的jar包 请求之后仍然报找不到jar包 请问是什么原因呢

@AdamoChen
Copy link

参考上一个提问,把这个依赖注释掉。

@c350147221
Copy link

没找到被注释的依赖呢 我下载的版本有问题么 方便截图么

@asciel
Copy link

asciel commented Apr 19, 2023

实测有效的解决方案:

  1. 解压源代码目录下的 jacoco/maven-plugin/1.0.2-SNAPSHOT.tar,获得 1.0.2 目录;
  2. 注释掉 1.0.2/jacoco/org.jacoco.build/1.0.2-SNAPSHOT 目录下的 org.jacoco.build/1.0.2-SNAPSHOT org.jacoco.build-1.0.2-SNAPSHOT.pom 文件中的
<parent>
  <groupId>com.xiaoju</groupId>
  <artifactId>base-pom</artifactId>
  <version>0.0.1</version>
</parent>
  1. 将 1.0.2/jacoco 目录下的所有内容 复制到 ${user.home}/.m2/repository/org/jacoco 目录下,即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants