美文网首页
解决maven scope=system依赖jar包没有打包到启

解决maven scope=system依赖jar包没有打包到启

作者: 追风还是少年 | 来源:发表于2024-01-30 23:32 被阅读0次
        <dependency>
            <groupId>XXX</groupId>
            <artifactId>com.XXX.XXX</artifactId>
            <version>0.0.1</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/libs/XXX-0.0.2-SNAPSHOT.jar</systemPath>
        </dependency>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>

                <configuration>
                    <includeSystemScope>true</includeSystemScope>
                    <mainClass>com.XXX.XXX.XXX</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>

相关文章

网友评论

      本文标题:解决maven scope=system依赖jar包没有打包到启

      本文链接:https://www.haomeiwen.com/subject/oyuoodtx.html