Idea maven compiles local jar package problem

Maven keeps reporting this error when compiling. I am in a cloud of fog.

The configuration in pom.xml is as follows.

  <dependency>
       <groupId>org.fisco-bcos</groupId>
       <artifactId>web3sdk</artifactId>
       <version>2.4.0.0601-bsn</version>
       <scope>system</scope>
       <systemPath>${project.basedir}/lib/web3sdk.jar</systemPath>
   </dependency>
'dependencies.dependency.systemPath' for org.fisco-bcos:web3sdk:jar should not point at files within the project directory, ${project.basedir}/lib/web3sdk.jar will be unresolvable by dependent projects @ line 224, column 25

The error is reported as shown below, and the
Insert picture description here
compilation is not successful.

All kinds of Baidus, I can’t solve it all the time. I
compared the source code and various configurations and found that they are the same... After several hours, there
is no way. The only difference is that the version of the idea is different, and
the version that fails to compile It is IntelliJ IDEA 2019.3.4 version The
successfully compiled version is IntelliJ IDEA 2020.3.1 x64 version

It seems that the 2020 version has solved this problem. Allows to compile this kind of local jar package

<systemPath>${project.basedir}/lib/web3sdk.jar</systemPath>

Guess you like

Origin blog.csdn.net/phker/article/details/112356187