zoukankan      html  css  js  c++  java
  • maven 在不同机器的一台好,一台编译出错

    在一台机器上maven项目导入后报错:common.lang这个包找不到,但是另外一台机器没问题。运行maven dependency:tree 可以看到一台机器有这个依赖,这台机器没有。在项目执行mvn clean package时可以看到下面的警告:

     The POM for org.springframework.cloud:spring-cloud-starter-netflix-hystrix:jar:2.1.1.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
    [WARNING] The POM for org.springframework.cloud:spring-cloud-starter-netflix-hystrix-dashboard:jar:2.1.1.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

    [WARNING] The POM for org.springframework.cloud:spring-cloud-starter-netflix-hystrix-dashboard:jar:2.1.1.RELEASE is invalid, transitive dependencies (if any) will not be available: 2 problems were encountered while building the effective model for org.springframework.cloud:spring-cloud-starter-netflix-hystrix-dashboard:2.1.1.RELEASE

    把对应的本地maven仓库jar包删除还是没用

    mvn clean package  -X 代开debug日志可以看到
    [FATAL] Non-parseable POM C:Users8619.m2 epositoryio etty etty-bom4.1.33.Final etty-bom-4.1.33.Final.pom: processing instruction can not have PITarget with reserved xml name (position: END_TAG seen ...</dependencyManagement> </project> <?xml ... @236:7)  @ C:Users8619.m2 epositoryio etty etty-bom4.1.33.Final etty-bom-4.1.33.Final.pom, line 236, column 7
    [ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @

    把netty-bom这个目录删除,在重新执行mvn clean package,问题解决

    喜欢艺术的码农
  • 相关阅读:
    Autocomplete 使用——尽信书则不如无书!
    SQL累加注意点
    自己写的一个可行且简单的FTP操作类
    分割表值函数
    转载SQL游标
    一个存储过程包含了很多很多
    转载预防SQL注入攻击之我见
    Jquery温习1
    WMI远程启动软件(某个应用程序)
    struts如何实现国际化(转)
  • 原文地址:https://www.cnblogs.com/zjhgx/p/10830965.html
Copyright © 2011-2022 走看看