我自定义一个类似spring-boot 的parent的项目,然后我找了个例子:https://github.com/alibaba/aliyun-spring-boot,然后开码。
- 项目A
D:\CODING\JAVA\XINJI-SPRING-BOOT
│ .gitignore
│ pom.xml
├─xinji-spring-boot-dependencies
│ pom.xml
│
└─xinji-spring-boot-parent
pom.xml
父子关系:
xinji-spring-boot > xinji-spring-boot-dependencies > xinji-spring-boot-parent
- 项目B
D:\CODING\JAVA\XINJI-SPRING-BOOT-EXAMPLES
│ .gitignore
│ pom.xml
父子关系:
xinji-spring-boot-parent > xinji-spring-boot-examples
问题:
xinji-spring-boot-dependencies 中 dependencyManagement 中维护的依赖在 xinji-spring-boot-examples POM 中找到不version。
加载项目报错:
com.alibaba.boot:nacos-config-spring-boot-autoconfigure:jar:unknown was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of alimaven has elapsed or updates are forced
奇怪的地方:
-
xinji-spring-boot-examples 有效 POM 的 dependencyManagement 是有的
-
spring-boot-dependencies 中依赖都正常
代码:
code.zip (122.3 KB)