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

Parent dependency not found, it is probably in the parent pom #84

Open
545593069 opened this issue Dec 15, 2021 · 8 comments
Open

Parent dependency not found, it is probably in the parent pom #84

545593069 opened this issue Dec 15, 2021 · 8 comments

Comments

@545593069
Copy link

when I want excluse any package ,this tools Prompt me ”Parent dependency not found, it is probably in the parent pom“ ,so I must manually exclude dependencies,I think it's a bug.look forward to your reply

@545593069
Copy link
Author

my idea version
IntelliJ IDEA 2021.3 (Ultimate Edition)
Build #IU-213.5744.223, built on November 27, 2021
Licensed to wen yang
Subscription is active until August 11, 2022.
For educational use only.
Runtime version: 11.0.13+7-b1751.19 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.0.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 10
Registry:
ide.windowSystem.autoShowProcessPopup=true

Non-Bundled Plugins:
wu.seal.tool.jsontokotlin (3.7.2)
idea.plugin.protoeditor (213.5744.224)
org.intellij.plugins.junitgen (2.0.12)
com.jd.plugin.center (2.0.0)
com.jd.fastcode (1.8)
com.bruce.intellijplugin.generatesetter (2.8)
MavenRunHelper (4.18.212.000.3)
cn.yiiguxing.plugin.translate (3.2.0.1)

Kotlin: 213-1.5.10-release-949-IJ5744.223

@krasa
Copy link
Owner

krasa commented Dec 15, 2021

pom example?

@545593069
Copy link
Author

I found a logic that is probably a bug, when a package has multiple indirect dependencies that are the same package. Tools cannot rule out this dependency.like that
image

krasa added a commit that referenced this issue Dec 16, 2021
krasa added a commit that referenced this issue Dec 16, 2021
@krasa
Copy link
Owner

krasa commented Dec 16, 2021

I've added some logging:

MavenRunHelper.zip

Enable by adding : #krasa.mavenhelper
image

image

You should be able to find this in the log:

2021-12-16 12:10:45,738 [ 384433]  DEBUG - per.analyzer.action.BaseAction - Dependency not matched: test:org.example2:compile:1.0-SNAPSHOT:null:jar:compile:jar != mockito-core:org.mockito:null:null:null:null 

krasa added a commit that referenced this issue Dec 22, 2021
@jiulongting
Copy link

How should this problem be repaired

@krasa
Copy link
Owner

krasa commented Mar 21, 2022

@jiulongting by providing a log

@darknesstm
Copy link

4.27.1-IJ2022.2
I have encountered the same issue.

@stoennnnn
Copy link

遇到了同样的问题。
我的问题是依赖父工程版本使用的占位符“${revision}”,
而在子工程里面依赖版本使用的是:“2.0.0-SNAPSHOT”
在子工程里面去排除依赖就会报这个错误。把依赖方式改为一致就可以了
和工具没啥关系,maven父子依赖的项目都有这个问题

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