项目引用本地包,${project.basedir}改为${pom.basedir}
(lib目录在项目目录下)
<dependencies>
<!-- project lib-->
<dependency>
<groupId>com.allinpay.sdk</groupId>
<artifactId>top-sdk-java</artifactId>
<version>1.0.8</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/top-sdk-java-1.0.8.jar</systemPath>
</dependency>
</dependencies>
<dependencies>
<!-- project lib-->
<dependency>
<groupId>com.allinpay.sdk</groupId>
<artifactId>top-sdk-java</artifactId>
<version>1.0.8</version>
<scope>system</scope>
<systemPath>${pom.basedir}/lib/top-sdk-java-1.0.8.jar</systemPath>
</dependency>
</dependencies>
参考:
'dependencies.dependency.systemPath'
‘dependencies.dependency.systemPath‘ for com.xxx:jar should not point at files within the.. 警告解决方法