Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 5904b09

Browse files
author
Mark Pollack
authored
Clarify docs on app registration and use of --force (#2987)
1 parent 30498c3 commit 5904b09

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

spring-cloud-dataflow-docs/src/main/asciidoc/getting-started-cloudfoundry.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,10 @@ The goal is to perform a rolling upgrade of the `log-sink` application to `1.2.0
365365

366366
[source,console,options=nowrap]
367367
----
368-
dataflow:>app register --name time --type source --uri maven://org.springframework.cloud.stream.app:time-source-rabbit:1.2.0.RELEASE --force
368+
dataflow:>app register --name time --type source --uri maven://org.springframework.cloud.stream.app:time-source-rabbit:1.2.0.RELEASE
369369
Successfully registered application 'source:time'
370370
371-
dataflow:>app register --name log --type sink --uri maven://org.springframework.cloud.stream.app:log-sink-rabbit:1.1.0.RELEASE --force
371+
dataflow:>app register --name log --type sink --uri maven://org.springframework.cloud.stream.app:log-sink-rabbit:1.1.0.RELEASE
372372
Successfully registered application 'sink:log'
373373
374374
dataflow:>app info source:time
@@ -501,7 +501,7 @@ Now you can update `log-sink` from `1.1.0.RELEASE` to `1.2.0.RELEASE`. First we
501501

502502
[source,console,options=nowrap]
503503
----
504-
dataflow:>app register --name log --type sink --uri maven://org.springframework.cloud.stream.app:log-sink-rabbit:1.1.0.RELEASE --force
504+
dataflow:>app register --name log --type sink --uri maven://org.springframework.cloud.stream.app:log-sink-rabbit:1.1.0.RELEASE
505505
Successfully registered application 'sink:log'
506506
----
507507

spring-cloud-dataflow-docs/src/main/asciidoc/getting-started-kubernetes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ The following example (with output after each command) shows how to register the
949949

950950
[source,console,options=nowrap]
951951
----
952-
dataflow:>app register --name log --type sink --uri docker:springcloudstream/log-sink-rabbit:2.1.0.RELEASE --force
952+
dataflow:>app register --name log --type sink --uri docker:springcloudstream/log-sink-rabbit:2.1.0.RELEASE
953953
Successfully registered application 'sink:log'
954954
955955
dataflow:>stream update --name mystream --properties version.log=2.1.0.RELEASE

spring-cloud-dataflow-docs/src/main/asciidoc/getting-started-local.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Now you can use the `maven://` URI schema and maven coordinates to resolve jars
279279

280280
[source,bash,subs=attributes]
281281
----
282-
dataflow:>app register --type processor --name pose-estimation --uri maven://org.springframework.cloud.stream.app:pose-estimation-processor-rabbit:2.0.2.BUILD-SNAPSHOT --metadata-uri maven://org.springframework.cloud.stream.app:pose-estimation-processor-rabbit:jar:metadata:2.0.2.BUILD-SNAPSHOT --force
282+
dataflow:>app register --type processor --name pose-estimation --uri maven://org.springframework.cloud.stream.app:pose-estimation-processor-rabbit:2.0.2.BUILD-SNAPSHOT --metadata-uri maven://org.springframework.cloud.stream.app:pose-estimation-processor-rabbit:jar:metadata:2.0.2.BUILD-SNAPSHOT
283283
----
284284

285285
This approach allow you to share jars build and installed on the host machine (e.g. `mvn clean install`) directly with the dataflow-server container.

spring-cloud-dataflow-docs/src/main/asciidoc/streams.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ be resolved from the Data Flow Server process, specify `--local false`.
465465
[WARNING]
466466
====
467467
When using either `app register` or `app import`, if an app is already registered with
468-
the provided name and type, it is not overridden by default. If you would like to override the
469-
pre-existing app coordinates, then include the `--force` option.
468+
the provided name and type and version, it is not overridden by default. If you would like to override the
469+
pre-existing app uri or metadata-uri coordinates, then include the `--force` option.
470470
471471
Note, however, that, once downloaded, applications may be cached locally on the Data Flow server, based on the resource
472472
location. If the resource location does not change (even though the actual resource _bytes_ may be different), then it

spring-cloud-dataflow-docs/src/main/asciidoc/tasks.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ You can also pass the `--local` option (which is `TRUE` by default) to indicate
132132
If the location should be resolved from the Data Flow Server process, specify `--local false`.
133133

134134
When using either `app register` or `app import`, if a task app is already registered with
135-
the provided name, it is not overridden by default. If you would like to override the
136-
pre-existing task app, then include the `--force` option.
135+
the provided name and version, it is not overridden by default. If you would like to override the
136+
pre-existing task app with a different uri or uri-metadata location, then include the `--force` option.
137137

138138
[NOTE]
139139
In some cases, the Resource is resolved on the server side.

0 commit comments

Comments
 (0)