java - maven 依赖问题
怪我咯
怪我咯 2017-04-18 10:51:15
0
3
405

已经写好了一个公共的jar,xxx-common.jar

但是这个common的jar里面只是编译了,没有打进依赖

有一个程序需要用到这个jar,便加入了pom.xml

但是编译这个程序的时候发现,common里面的依赖缺少,无法完成编译。

总不能再把common的依赖复制到这个程序的pom.xml里吧

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
迷茫

xxx-common.jar does not contain pom.xml, right?

This jar package must be packaged with mvn, and pom.xml must be packaged in it.

迷茫

It is recommended to check the following places:

1. It is recommended to use maven packaging command:

mvn install

2. Check whether there is an <exclusions> tag in the pom.xml of the project where you introduced xxx-common.jar, such as:

<exclusions>
    <exclusion>
        <artifactId>slf4j-api</artifactId>
        <groupId>org.slf4j</groupId>
    </exclusion>
</exclusions>
大家讲道理

Can you explain the problem in more detail? I don’t understand what your problem is

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!