Skip to content

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? #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
canmengqian opened this issue Aug 10, 2023 · 1 comment

Comments

@canmengqian
Copy link

<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
@dsyer
Copy link
Collaborator

dsyer commented Sep 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants