1
我有数据存储根模块下的一些行家模块的大型项目,在我使用的球衣客户依赖的模块之一,冲突Maven依赖于太阳的球衣客户
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;
This is the dependency which is to be used。
客户工作正常。
然后,我将相同的代码复制到其他多模块Maven项目中,并将相关性添加到pom XML中。 但是现在代码崩溃了,我发现现在被引用的依赖关系是不同的!
所以,我想知道:
如何明确指定哪些依赖要使用? (注意:我改变了这个新模块的pom,但是它再次从父母pom得到泽西帽)