Maven:为什么需要依赖模块的.jars来实现"mvn initialize"? [英] Maven: Why does it need dependency modules' .jars for `mvn initialize`?
问题描述
我有一个基于Maven的项目,其中包含模块,
I have a Maven-based project with modules, say,
root
modA
modB
现在modB
取决于modA
.
当我跑步
Now modB
depends on modA
.
When I run
mvn initialize help:effective-pom
它失败,因为modB
想要modA.jar
.我的问题是,
it fails because modB
wants modA.jar
. My question is,
为什么需要jar?所有需要的信息应该在pom.xml中,该信息在模块中可用.
Why does it need the jar? All the information needed should be in pom.xml, which is available in the module.
想要尝试的人,例如Hibernate Core 3.3.2.
Who want's to try, check out e.g. Hibernate Core 3.3.2.
谢谢, 恩德拉
推荐答案
在多模块项目上进行了本地尝试,发现maven不需要initialize
或help:effective-pom
的依赖模块.jars.
Tried this locally on a multi-module project and see that maven does not need dependency module .jars for either initialize
or help:effective-pom
.
看来您pom中可能有一些插件配置导致了此问题.您可以检查一下吗,如果可以,请使用相关的pom片段更新您的问题?
It looks like there may be some plugin configuration in your pom which is causing this. Could you check and if so, update your question with the relevant pom snippet?
这篇关于Maven:为什么需要依赖模块的.jars来实现"mvn initialize"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!