0
点赞
收藏
分享

微信扫一扫

spring boot 项目打包到maven仓库供其它模块使用


 

在对spring boot项目进行打包发布的时候发现其它spring boot项目服务真正引用使用该spring boot包中的类

 

需对打包插件做如下修改:

<build>
   <plugins>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
            <source>1.8</source>
            <target>1.8</target>
         </configuration>
      </plugin>
   </plugins>
</build>

 

spring boot 中默认为:
 

<build>
   <plugins>
      <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
   </plugins>
</build>

 

举报

相关推荐

0 条评论