Project build error: 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-sleuth-zipkin:jar is missing

huangapple go评论86阅读模式
英文:

Project build error: 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-sleuth-zipkin:jar is missing

问题

以下是翻译好的内容:

验证以下代码片段是否在 pom.xml 文件中:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>${spring-cloud.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

并且在配置中作为属性进行了如下配置:

<spring-cloud.version>Hoxton.SR8</spring-cloud.version>
英文:

Verified that following snippets are in the pom.xml

&lt;dependencyManagement&gt;
	&lt;dependencies&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
			&lt;artifactId&gt;spring-cloud-dependencies&lt;/artifactId&gt;
			&lt;version&gt;${spring-cloud.version}&lt;/version&gt;
			&lt;type&gt;pom&lt;/type&gt;
			&lt;scope&gt;import&lt;/scope&gt;
		&lt;/dependency&gt;
	&lt;/dependencies&gt;
&lt;/dependencyManagement&gt;

and below configured as a property :
<spring-cloud.version>Hoxton.SR8</spring-cloud.version>

答案1

得分: 0

抱歉,发生了拼写错误。我在pom.xml中有以下内容。一旦将此更改为"spring-cloud-sleuth-zipkin",Maven成功加载了jar。

<artifactId>spring-cloud-starter-sleuth-zipkin</artifactId>
英文:

My apologies. There was a typo. I had below in pom.xml. Once changed this to "spring-cloud-sleuth-zipkin", jar was successfully loaded by maven.

<artifactId>spring-cloud-starter-sleuth-zipkin</artifactId>

huangapple
  • 本文由 发表于 2020年9月23日 17:19:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/64024793.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定