You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to use the spring-cloud-starter-alibaba-nacos-discovery dependency with version 2021.0.5.0, I encounter an issue where the ${revision} variable in the nacos-client dependency's POM file is not resolved correctly, leading to an error:
Could not find artifact com.alibaba.nacos:nacos-all:pom:${revision} in aliyunmaven (https://maven.aliyun.com/repository/public)
The POM file contains the following snippet, where ${revision} is used, but it does not get replaced by a concrete version number:
<projectxsi:schemaLocation="http://maven.apache.org/POM/4.0.0 [http://maven.apache.org/xsd/maven-4.0.0.xsd"](http://maven.apache.org/xsd/maven-4.0.0.xsd%22) xmlns="[http://maven.apache.org/POM/4.0.0"](http://maven.apache.org/POM/4.0.0%22)
xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance">](http://www.w3.org/2001/XMLSchema-instance%22%3E)
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-all</artifactId>
<version>${revision}</version> <!-- The issue is here -->
</parent>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<version>2.2.0</version>
<name>nacos-client ${project.version}</name>
<url>http://nacos.io</url>
</project>
Simplest demo
The simplest demo involves creating a Maven project with the following dependency:
Which Component
Nacos Discovery
Describe the bug
When trying to use the
spring-cloud-starter-alibaba-nacos-discovery
dependency with version2021.0.5.0
, I encounter an issue where the${revision}
variable in thenacos-client
dependency's POM file is not resolved correctly, leading to an error:The POM file contains the following snippet, where
${revision}
is used, but it does not get replaced by a concrete version number:Simplest demo
The simplest demo involves creating a Maven project with the following dependency:
Then try building the project, and you will see the error.
To Reproduce
Steps to reproduce the behavior:
mvn clean install
.${revision}
not being resolved.Expected behavior
The
${revision}
variable should be replaced with the correct version ofnacos-all
, and the project should compile without errors.Screenshots
N/A
Additional context
The text was updated successfully, but these errors were encountered: