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,问题解决

    喜欢艺术的码农
  • 相关阅读:
    javascript学习笔记
    c++输入文件流ifstream用法详解
    如何退出while(cin >> s)
    【赵渝强老师】利用Python完成数据分布特征的分析
    PG 的 AWR pg_profile
    java构建树形结构
    docker安装mongodb 数据备份和还原
    通过经纬度计算不同模型图瓦片坐标
    linux常用命令
    docker 常用命令
  • 原文地址:https://www.cnblogs.com/zjhgx/p/10830965.html
Copyright © 2011-2022 走看看