I have a Spring-Boot project (2.7.18) and a dependency to a local jar in my pom.xml.
<dependency>
<groupId>MyJar</groupId>
<artifactId>MyJar</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/../ExtLibs/MyJar.jar</systemPath>
</dependency>
I get an error (inside Eclipse IDE) there.
dependencies.dependency.systemPath' for MyJar:MyJar:jar must specify an absolute path but is ${project.basedir}/../ExtLibs/MyJar.jar
So I change to an absolute path.
<systemPath>/home/max/prjs/ExtLibs/MyJar.jar</systemPath>
Now the error is gone – but I get a warning.
dependencies.dependency.systemPath' for MyJar:MyJar:jar should use a variable instead of a hard-coded path /home/max/prjs/ExtLibs/MyJar.jar
So what now?? Any idea I can make that error and warning free??