如何在代理后面运行Spring Cloud Data Flow

时间:2017-12-12 00:37:53

标签: spring-cloud-dataflow

我正在尝试在代理后面运行Spring Cloud Data Flow。

我已将代理配置添加到maven以及将其作为参数传递,但结果是相同的。

我收到这些错误

无法将工件org.springframework.cloud.stream.app:file-source-kafka-10:jar:metadata:1.2.0.RELEASE从/转移到springRepo(https://repo.spring.io/libs-snapshot):连接被拒绝(连接拒绝了)

引起:org.eclipse.aether.resolution.ArtifactResolutionException:无法将工件org.springframework.cloud.stream.app:file-source-kafka-10:jar:metadata:1.2.0.RELEASE从/转移到springRepo({ {3}}):连接被拒绝(连接被拒绝)         在org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)〜[aether-impl-1.0.2.v20150114.jar!/:na]         在org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)〜[aether-impl-1.0.2.v20150114.jar!/:na]         at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifacts(DefaultRepositorySystem.java:302)〜[aether-impl-1.0.2.v20150114.jar!/:na]         在org.springframework.cloud.deployer.resource.maven.MavenArtifactResolver.resolve(MavenArtifactResolver.java:294)〜[spring-cloud-deployer-resource-maven-1.3.0.M2.jar!/:1.3.0.M2 ]         ...省略了76个常用帧 引起:org.eclipse.aether.transfer.ArtifactTransferException:无法将工件org.springframework.cloud.stream.app:file-source-kafka-10:jar:metadata:1.2.0.RELEASE从/转移到springRepo({ {3}}):连接被拒绝(连接被拒绝)         在org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)〜[aether-connector-basic-1.0.2.v20150114.jar!/:na]         在org.eclipse.aether.connector.basic.BasicRepositoryConnector $ TaskRunner.run(BasicRepositoryConnector.java:355)〜[aether-connector-basic-1.0.2.v20150114.jar!/:na]         在org.eclipse.aether.util.concurrency.RunnableErrorForwarder $ 1.run(RunnableErrorForwarder.java:67)〜[aether-util-1.0.2.v20150114.jar!/:na]         在org.eclipse.aether.connector.basic.BasicRepositoryConnector $ DirectExecutor.execute(BasicRepositoryConnector.java:581)〜[aether-connector-basic-1.0.2.v20150114.jar!/:na]         在org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)〜[aether-connector-basic-1.0.2.v20150114.jar!/:na]         在org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)〜[aether-impl-1.0.2.v20150114.jar!/:na]         at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)〜[aether-impl-1.0.2.v20150114.jar!/:na]         ...省略了79个常用帧 引起:java.net.ConnectException:连接被拒绝(连接被拒绝)

1 个答案:

答案 0 :(得分:0)

您可以为maven存储库配置代理设置。配置属性记录在reference guide中,带有样本。