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

    喜欢艺术的码农
  • 相关阅读:
    转:哈希加密
    转: 基础哈希介绍
    ASP.NET MVC-URL路由
    Nhibnate之CreateQuery和CreateSqlQuery查询
    NHibernate.HibernateException:“Unable to locate persister for the entity named 'Domain.Entity.LeaseUser'.
    async/await中的promise返回错误reject
    python txt文件常用读写操作
    Python 第三方日志框架loguru使用
    pycharm常用设置与常用快捷键
    jmeter正则表达式
  • 原文地址:https://www.cnblogs.com/zjhgx/p/10830965.html
Copyright © 2020-2023  润新知