在 spring 云数据流中获取 DataFlowClientException
Getting DataFlowClientException in spring cloud dataflow
当我尝试在 shell 中给出以下命令时,出现以下错误。
你能告诉我为什么会出现这个错误吗?我正在尝试执行以下 link 程序
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>
您需要确保您通过app register
注册的应用确实在相应的maven仓库中。看起来你没有推他们。如果您的应用程序位于自定义 Maven 存储库中,则 configure Maven 存储库。
另外,SCDF服务器报错的APP和你上面注册的不一样。
当我尝试在 shell 中给出以下命令时,出现以下错误。 你能告诉我为什么会出现这个错误吗?我正在尝试执行以下 link 程序
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>
您需要确保您通过app register
注册的应用确实在相应的maven仓库中。看起来你没有推他们。如果您的应用程序位于自定义 Maven 存储库中,则 configure Maven 存储库。
另外,SCDF服务器报错的APP和你上面注册的不一样。