项目引用了自定义jar包
<dependency>
<groupId>com.xxx.test</groupId>
<artifactId>xxx_sdk</artifactId>
<version>2.4.3.9</version>
<type>jar</type>
<scope>system</scope>
<systemPath>${project.basedir}/lib/xxx-2.4.3.9.jar</systemPath>
</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
解决办法:
修改<systemPath>
的 basedir 路径,改为 pom.basedir
<dependency>
<groupId>com.xxx.test</groupId>
<artifactId>xxx_sdk</artifactId>
<version>2.4.3.9</version>
<type>jar</type>
<scope>system</scope>
<systemPath>${pom.basedir}/lib/xxx-2.4.3.9.jar</systemPath>
</dependency>