spring-boot-thin-launcher icon indicating copy to clipboard operation
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?

Open canmengqian opened this issue 2 years ago • 1 comments

<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

canmengqian avatar Aug 10 '23 10:08 canmengqian

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)?

dsyer avatar Sep 21 '23 08:09 dsyer