当我尝试在shell中给出以下命令时,出现以下错误。 您能否让我知道为什么我会收到此错误。我正在尝试执行以下链接程序
本地Maven存储库:C:\ maven
https://www.javainuse.com/spring/cloud-data-flow
Error :
dataflow:>app register --name source-app --type source --uri maven://com.spring.cloud:soruce:jar:0.0.1-SNAPSHOT
dataflow:>app register --name processor-app --type processor --uri maven://com.spring.cloud:processor:jar:0.0.1-SNAPSHOT
dataflow:>app register --name sink-app --type sink --uri maven://com.spring.cloud:sink:jar:0.0.1-SNAPSHOT
stream create --name log-data --definition 'source-app | processor-app | sink-app'
dataflow:>stream deploy --name log-data
Command failed org.springframework.cloud.dataflow.rest.client.DataFlowClientException: Failed to resolve MavenResource: com.javainuse:sink:jar:0.0.1-SNAPSHOT. Configured remote repository: : [springRepo]
springcloud数据流本地服务器:
java.lang.IllegalStateException: Failed to resolve MavenResource: com.javainuse:processor:jar:0.0.1-SNAPSHOT. Configured remote repository: : [springRepo]
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.javainuse:processor:jar:0.0.1-SNAPSHOT in springRepo (https://repo.spring.io/libs-snapshot)
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.spring.clouddata</groupId>
<artifactId>sourceapp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>sourceapp</name>
<url>http://maven.apache.org</url>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.9.RELEASE</version>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<spring-cloud.version>Brixton.SR7</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<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>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
答案 0 :(得分:1)
您需要确保通过app register
注册的应用程序确实在相应的maven存储库中。看来您没有推动他们。如果您的应用程序位于自定义Maven存储库中,请configure Maven存储库。
此外,SCDF服务器抱怨的应用与您上面注册的应用不同。