您当前的位置: 首页 >  qq_34412985 spring

springboot做maven聚合工程的父工程的pom.xml内容

qq_34412985 发布时间:2020-07-25 22:06:19 ,浏览量:5


  4.0.0

  com.pc
  DA_Refactoring_Parent
  0.0.1-SNAPSHOT
  pom

  DA_Refactoring_Parent
  http://maven.apache.org

 
    UTF-8
    Finchley.SR4
    UTF-8
    1.8
 
 
      org.springframework.boot
      spring-boot-starter-parent
      2.0.9.RELEASE
 
 
      
          
              org.springframework.cloud
              spring-cloud-dependencies
              ${spring-cloud.version}
              pom
              import
          
      
 
        
          ../eurekaserver
          ../bs
          ../dqservernode
          ../dqc
          ../ds
          ../common-node
          ../common-driver
          ../gateway
          ../md
          ../mg
          ../sp
          ../ss
      
      

common-driver依赖common-node dqc和mg依赖common-driver eureka和gateway单独不依赖其它

因为common-node和common-driver没有springboot的主启动类,所以只能使用maven插件的build,不能使用上图中的spring-boot-maven-plugin打包。否则会报错common-node和common-drvier中没有springboot的主启动类,其他各个节点中自己都有spring-boot-maven-plugin。

子模块中的pom.xml中引用父工程的内容,以下2种都可以,建议选第一种,第二种我提交代码到git后,同事更新下来后编译时候报错,同事使用eclipse的luna,我使用spring tool suits。

   
        com.pc
        DA_Refactoring_Parent
        0.0.1-SNAPSHOT
        ../DA_Refactoring_Parent
    
    ss
    ss

   
        com.pc
          DA_Refactoring_Parent
          0.0.1-SNAPSHOT
        
    
    com.pc
    bs
    0.0.1-SNAPSHOT
    bs
    bs

 

 

关注
打赏
查看更多评论

qq_34412985

暂无认证

  • 5浏览

    0关注

    957博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录