maven打成jar包后,其他工程导入不进去

Posted jichi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven打成jar包后,其他工程导入不进去相关的知识,希望对你有一定的参考价值。

关键点

classifier中配置exec

pom文件配置

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
                <!-- 配置此配置,其他工程才能正常引入jar包 -->
        <classifier>exec</classifier>
                <!-- 配置此项,与springboot的热部署一起使用,不配置则会不生效  -->
        <fork>true</fork>
    </configuration>
</plugin>

以上是关于maven打成jar包后,其他工程导入不进去的主要内容,如果未能解决你的问题,请参考以下文章