You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2025. It is now read-only.
- As an temporary fix for this documentation issue, provide
gradle and maven samples how to build a custom dataflow server
adding mysql driver. These custom build files examples will
produce same fatjar as project itself with an addition of
mysql-connector-java-8.0.16.jar.
- This lays groundwork to make dependency management more clear
as there is a way too much manual configuration for dependencies
and versions for custom gradle and maven builds.
- Fixes#2489
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-docs/src/main/asciidoc/configuration-local.adoc
+170-2Lines changed: 170 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,9 +160,10 @@ NOTE: Due to licensing restrictions we're unable to bundle Oracle driver. You ne
160
160
161
161
==== Adding a Custom JDBC Driver
162
162
To add a custom driver for the database (for example, Oracle), you should rebuild the Data Flow Server and add the dependency to the Maven `pom.xml` file.
163
-
Since there is a Spring Cloud Data Flow Server for each target platform, you need to modify the appropriate maven `pom.xml` for each platform. There are tags in each GitHub repository for each server version.
163
+
You need to modify the maven `pom.xml` of `spring-cloud-dataflow-server` module.
164
+
There are GA release tags in GitHub repository, so you can switch to desired GA tags to add the drivers on the production-ready codebase.
164
165
165
-
To add a custom JDBC driver dependency for the local server implementation:
166
+
To add a custom JDBC driver dependency for the Spring Cloud Data Flow server:
166
167
167
168
. Select the tag that corresponds to the version of the server you want to rebuild and clone the github repository.
168
169
. Edit the spring-cloud-dataflow-server/pom.xml and, in the `dependencies` section, add the dependency for the database driver required. In the following example , an Oracle driver has been chosen:
@@ -196,6 +197,173 @@ spring:
196
197
driver-class-name:org.postgresql.Driver
197
198
----
198
199
200
+
[start=4]
201
+
. Alternatively, you can build a custom Spring CLoud Data Flow server with your build files.
202
+
Here are the examples of bundling MySQL driver using Gradle and Maven, which will result in the same jar as the original Spring Cloud Data Flow server version (example: `2.1.2.RELEASE`) with the addition of a mysql-connector-java-8.0.16.jar:
203
+
204
+
[source, groovy]
205
+
.gradle
206
+
----
207
+
plugins {
208
+
id 'org.springframework.boot' version '2.1.3.RELEASE'
You can use the following configuration properties of the https://github.com/spring-cloud/spring-cloud-deployer-local[Local deployer] to customize how Streams and Tasks are deployed.
0 commit comments