zoukankan      html  css  js  c++  java
  • duplicate declaration of version (?) @ line 30, column 21 'parent.relativePath' of POM com.jty:ms-author-manage:1.0-SNAPSHOT

    问题: 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.jty:ms-system-base:jar -> duplicate declaration of version (?) @ line 30, column 21
    'parent.relativePath' of POM com.jty:ms-author-manage:1.0-SNAPSHOT (D:Projectsms-springcloud-learnms-system-servicems-author-managepom.xml) points at com.jty:ms-system-service instead of com.jty:ms-springcloud-learn, please verify your project structure @ line 5, column 13

    两个问题

    在子工程pom.xml
    1.添依赖其他工程的版本号

      ...
    <!--添加自定义依赖-->
            <dependency>
                <groupId>com.jty</groupId>
                <artifactId>ms-system-base</artifactId>
                <version>${project.version}</version>
                <scope>compile</scope>
            </dependency>
      ...
    
    1. 添加父工程依赖路径
        <parent>
          ...
           <relativePath>../../pom.xml</relativePath>
            <version>1.0-SNAPSHOT</version>
        </parent>
    
    
  • 相关阅读:
    API之绘图函数
    DotNetCharting
    Rule engine
    股票
    PHP
    获取Excel.dll
    Excel develop
    几个不错的开源的.net界面控件[转贴]
    关于EXCEL文件双击打不开的问题
    Regular expression
  • 原文地址:https://www.cnblogs.com/jinit/p/13154770.html
Copyright © 2011-2022 走看看