【发布时间】:2020-11-28 07:01:06
【问题描述】:
我有一个多模块项目,在其中一个模块中我包含依赖项,有些是可见的,而另一些则不是;尝试更好地解释:
我在父 pom 中有这个模块:
<modules>
<module>DataModelIbm</module>
<module>commonResources</module>
<module>wsdlClient</module>
<module>utente</module>
</modules>
在模块 utente 的 pom 中我有:
<dependency>
<groupId>dc.ita.int.gu</groupId>
<artifactId>DataModelIbm</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>dc.ita.int.gu</groupId>
<artifactId>commonResources</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>dc.ita.int.gu.wes</groupId>
<artifactId>wsdlClient</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
在Utenti的项目中,我导入:
来自模块 DataModelIbm
import dc.ita.int.gu.database.model.GuUserCon;
import dc.ita.int.gu.database.model.GuUserNon;
来自commonResources:
import dc.ita.int.gu.errorhandler.ErrDetails;
来自 wsdlClient
import dc.ita.int.gu.wes.websso.wsdl.CreateUserResponse;
import dc.ita.int.gu.wes.websso.wsdl.GetUser;
但是当我尝试编译时,只有从 wsdlClient 导入的类有错误;
可能是什么原因,是maven bug???
【问题讨论】:
标签: java maven dependencies multi-module