spring-boot-thin-launcher
spring-boot-thin-launcher copied to clipboard
I use a custom dependency package through maven and use a relative path. Thin-launcher reports an error and tells me must specify an absolute path. Is there any solution?
<dependency>
<groupId>cn.xuyanwu</groupId>
<artifactId>spring-file-storage-parent</artifactId>
<version>0.4.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/spring-file-storage-0.4.0.jar</systemPath>
<exclusions>
<exclusion>
<artifactId>hutool-core</artifactId>
<groupId>cn.hutool</groupId>
</exclusion>
</exclusions>
</dependency>
[ERROR] 'dependencies.dependency.systemPath' for cn.xuyanwu:spring-file-storage-parent:jar must specify an absolute path but is ${project.basedir}/src/main/resources/lib/spring-file-storage-0.4.0.jar @ line 164, column 25
at hidden.org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:197)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:482)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:424)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:414)
at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:158)
... 16 more
There's no way to do that right now using the configuration you propose. If you can just install the jar file in your local ~/.m2/repository it will work - it would be fairly trivial to change the configuration to do that instead. Or maybe you can find a way to expose the absolute path (e.g. a build helper plugin feature)?