如果是`dubbo-dependencies-bom`版本应该明确,如果传递到下游会导致在使用`flatten-maven-plugin`插件的时候一起修改了`dubbo-dependencies-bom`里面的版本,这样会编译不通过
我的测试代码在[cherry3.1](https://github.com/zhaoyunxing92/cherry-tomato/tree/cherry3.1),执行以下命令很容易得到异常
* 执行命令
```shell
/d/github/cherry-tomato (cherry3.1)
$ mvn clean package -pl cherry-tomato-api -am -Drevision=1.0
```
* 异常信息
```log
[ERROR] Failed to execute goal on project cherry-tomato-dubbo: Could not 
resolve dependencies for project io.github.sunny:cherry-tomato-dubbo:jar:1.0: 
Failed to collect dependencies at 
org.apache.dubbo:dubbo-spring-boot-starter:jar:2.7.4.1: Failed to read artifact 
descriptor for org.apache.dubbo:dubbo-spring-boot-starter:jar:2.7.4.1: Could 
not find artifact org.apache.dubbo:dubbo-dependencies-bom:pom:1.0 in aliyun 
(https://maven.aliyun.com/repository/central) -> [Help 1]
```
> 它会去找`org.apache.dubbo:dubbo-dependencies-bom:pom:1.0`版本

[ Full content available at: https://github.com/apache/dubbo/pull/5568 ]
This message was relayed via gitbox.apache.org for 
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to