问题: '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:\Projects\ms-springcloud-learn\ms-system-service\ms-author-manage\pom.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>

相关文章:

  • 2021-11-05
  • 2022-12-23
  • 2021-10-08
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2023-02-16
相关资源
相似解决方案