‘dependencies.dependency.systemPath‘ for com.xxx:jar should not point at files within the.. 警告解决方法

项目引用了自定义jar包

<dependency>
    <groupId>com.xxx.testgroupId>
    <artifactId>xxx_sdkartifactId>
    <version>2.4.3.9version>
    <type>jartype>
    <scope>systemscope>
    <systemPath>${project.basedir}/lib/xxx-2.4.3.9.jarsystemPath>
dependency>

打包出现如下警告

[WARNING] 'dependencies.dependency.systemPath' for com.xxx:jar should not point at files within the project directory, ${project.basedir}/lib/xxx.jar will be unresolvable by dependent projects @ line 250, column 25

解决办法:

修改的 basedir 路径,改为 pom.basedir

<dependency>
    <groupId>com.xxx.testgroupId>
    <artifactId>xxx_sdkartifactId>
    <version>2.4.3.9version>
    <type>jartype>
    <scope>systemscope>
    <systemPath>${pom.basedir}/lib/xxx-2.4.3.9.jarsystemPath>
dependency>

你可能感兴趣的:(Java,jar,java,spring,boot)