maven项目中,调用了第三方jar包,添加jar到pom中。

直接将jar包拷贝到项目指定目录下,然后在pom文件中指定依赖类型为system。

<dependencies>
    <dependency>
        <groupId>xxx</groupId>
        <artifactId>xxx</artifactId>
        <version>6.0</version>
        <scope>system</scope>
        <systemPath>${project.basedir}/libs/xxx-1.0.jar</systemPath>
    </dependency>
</dependencies>

源地址:https://www.cnblogs.com/nuccch/p/6122938.html

猜你喜欢

转载自blog.csdn.net/qq_32791023/article/details/83658922
今日推荐