diff --git a/spring-cloud-dataflow-apps-plugin/.gitignore b/spring-cloud-dataflow-apps-plugin/.gitignore
new file mode 100644
index 00000000..d9338952
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/.gitignore
@@ -0,0 +1,29 @@
+apps/
+/application.yml
+/application.properties
+asciidoctor.css
+*~
+.#*
+*#
+target/
+build/
+bin/
+_site/
+.classpath
+.project
+.settings
+.springBeans
+.DS_Store
+*.sw*
+*.iml
+*.ipr
+*.iws
+.idea/
+.factorypath
+spring-xd-samples/*/xd
+dump.rdb
+coverage-error.log
+.apt_generated
+aws.credentials.properties
+.vscode/
+
diff --git a/spring-cloud-dataflow-apps-plugin/.mvn/jvm.config b/spring-cloud-dataflow-apps-plugin/.mvn/jvm.config
new file mode 100644
index 00000000..0e7dabef
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/.mvn/jvm.config
@@ -0,0 +1 @@
+-Xmx1024m -XX:CICompilerCount=1 -XX:TieredStopAtLevel=1 -Djava.security.egd=file:/dev/./urandom
\ No newline at end of file
diff --git a/spring-cloud-dataflow-apps-plugin/.mvn/maven.config b/spring-cloud-dataflow-apps-plugin/.mvn/maven.config
new file mode 100644
index 00000000..3b8cf46e
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/.mvn/maven.config
@@ -0,0 +1 @@
+-DaltSnapshotDeploymentRepository=repo.spring.io::default::https://repo.spring.io/libs-snapshot-local -P spring
diff --git a/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/MavenWrapperDownloader.java b/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 00000000..e76d1f32
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,117 @@
+/*
+ * Copyright 2007-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.6";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if(mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if(mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if(!outputFile.getParentFile().exists()) {
+ if(!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/maven-wrapper.jar b/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/maven-wrapper.jar
new file mode 100644
index 00000000..2cc7d4a5
Binary files /dev/null and b/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/maven-wrapper.jar differ
diff --git a/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/maven-wrapper.properties b/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 00000000..642d572c
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
diff --git a/spring-cloud-dataflow-apps-plugin/LICENSE b/spring-cloud-dataflow-apps-plugin/LICENSE
new file mode 100644
index 00000000..9b259bdf
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ https://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright {yyyy} {name of copyright owner}
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle-header.txt b/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle-header.txt
new file mode 100644
index 00000000..39429ee6
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle-header.txt
@@ -0,0 +1,17 @@
+^\Q/*\E$
+^\Q * Copyright \E20\d\d\-20\d\d\Q the original author or authors.\E$
+^\Q *\E$
+^\Q * Licensed under the Apache License, Version 2.0 (the "License");\E$
+^\Q * you may not use this file except in compliance with the License.\E$
+^\Q * You may obtain a copy of the License at\E$
+^\Q *\E$
+^\Q * https://www.apache.org/licenses/LICENSE-2.0\E$
+^\Q *\E$
+^\Q * Unless required by applicable law or agreed to in writing, software\E$
+^\Q * distributed under the License is distributed on an "AS IS" BASIS,\E$
+^\Q * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\E$
+^\Q * See the License for the specific language governing permissions and\E$
+^\Q * limitations under the License.\E$
+^\Q */\E$
+^$
+^.*$
diff --git a/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle-suppressions.xml b/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle-suppressions.xml
new file mode 100644
index 00000000..9d3a0b2d
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle-suppressions.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle.xml b/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle.xml
new file mode 100644
index 00000000..c3e1de40
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/etc/checkstyle/checkstyle.xml
@@ -0,0 +1,196 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spring-cloud-dataflow-apps-plugin/etc/checkstyle/nohttp-checkstyle.xml b/spring-cloud-dataflow-apps-plugin/etc/checkstyle/nohttp-checkstyle.xml
new file mode 100644
index 00000000..4e21a0bd
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/etc/checkstyle/nohttp-checkstyle.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spring-cloud-dataflow-apps-plugin/mvnw b/spring-cloud-dataflow-apps-plugin/mvnw
new file mode 100755
index 00000000..a16b5431
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/mvnw
@@ -0,0 +1,310 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+ if [ -f /etc/mavenrc ] ; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ] ; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ MINGW*) mingw=true;;
+ Darwin*) darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="`/usr/libexec/java_home`"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+ if [ -r /etc/gentoo-release ] ; then
+ JAVA_HOME=`java-config --jre-home`
+ fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname "$PRG"`/$link"
+ fi
+ done
+
+ saveddir=`pwd`
+
+ M2_HOME=`dirname "$PRG"`/..
+
+ # make it fully qualified
+ M2_HOME=`cd "$M2_HOME" && pwd`
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --unix "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="`which javac`"
+ if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=`which readlink`
+ if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+ if $darwin ; then
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+ else
+ javaExecutable="`readlink -f \"$javaExecutable\"`"
+ fi
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="`which java`"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]
+ then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ] ; do
+ if [ -d "$wdir"/.mvn ] ; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=`cd "$wdir/.."; pwd`
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' < "$1")"
+ fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+ exit 1;
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
+ esac
+ done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
+ fi
+
+ if command -v wget > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=`cygpath --path --windows "$javaClass"`
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/spring-cloud-dataflow-apps-plugin/mvnw.cmd b/spring-cloud-dataflow-apps-plugin/mvnw.cmd
new file mode 100644
index 00000000..86115719
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/spring-cloud-dataflow-apps-plugin/pom.xml b/spring-cloud-dataflow-apps-plugin/pom.xml
new file mode 100644
index 00000000..a4a0084b
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/pom.xml
@@ -0,0 +1,289 @@
+
+
+ 4.0.0
+ org.springframework.cloud
+ spring-cloud-dataflow-apps-plugin-parent
+ 1.0.8-SNAPSHOT
+ spring-cloud-dataflow-apps-plugin-parent
+ Spring Cloud Dataflow Apps Plugin Parent
+ pom
+
+
+ 17
+ 3.1.1
+ 3.2.1
+ 2.22.2
+ UTF-8
+ UTF-8
+ ${java.version}
+ ${java.version}
+ 3.0.1
+ 3.1.0
+ false
+ true
+ true
+ true
+ 8.29
+ https://raw.githubusercontent.com/spring-cloud/spring-cloud-dataflow-apps-plugin/master/etc/checkstyle
+
+ ${checkstyle.location}/checkstyle-suppressions.xml
+
+
+ ${checkstyle.location}/nohttp-checkstyle.xml
+
+
+ ${checkstyle.location}/checkstyle-suppressions.xml
+
+ 0.0.2.RELEASE
+ true
+ 0.0.7
+
+
+
+ spring-cloud-dataflow-apps-generator-plugin
+ spring-cloud-dataflow-apps-metadata-plugin
+ spring-cloud-dataflow-apps-docs-plugin
+
+ https://github.com/spring-cloud/spring-cloud-dataflow-apps-plugin
+
+
+ scdf-apps-plugin-developers
+ SCDF Apps Plugin Developers
+ chackos at vmware com
+ VMware
+ https://www.spring.io
+
+ lead
+
+
+
+
+
+
+ Apache License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0
+ Copyright 2014-2020 the original author or authors.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied.
+
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
+ scm:git:git://github.com/spring-cloud/spring-cloud-dataflow-apps-plugin.git
+ scm:git:ssh://git@github.com/spring-cloud/spring-cloud-dataflow-apps-plugin.git
+ https://github.com/spring-cloud/spring-cloud-dataflow-apps-plugin
+
+
+
+
+ maven-javadoc-plugin
+ ${maven-javadoc-plugin.version}
+
+
+ javadoc
+ package
+
+ jar
+
+
+
+
+ 1.8
+ true
+
+
+
+ maven-source-plugin
+ ${maven-source-plugin.version}
+
+
+ attach-sources
+ package
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ ${maven-surefire-plugin.version}
+
+
+ **/*Tests.java
+ **/*Test.java
+
+
+ **/Abstract*.java
+
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ ${maven-checkstyle-plugin.version}
+
+
+ com.puppycrawl.tools
+ checkstyle
+ ${puppycrawl-tools-checkstyle.version}
+
+
+ io.spring.javaformat
+ spring-javaformat-checkstyle
+ ${spring-javaformat-checkstyle.version}
+
+
+ io.spring.nohttp
+ nohttp-checkstyle
+ ${nohttp-checkstyle.version}
+
+
+
+
+ checkstyle-validation
+ validate
+ true
+
+ ${disable.checks}
+ ${checkstyle.location}/checkstyle.xml
+ ${checkstyle.location}/checkstyle-header.txt
+
+ checkstyle.build.directory=${project.build.directory}
+ checkstyle.suppressions.file=${checkstyle.suppressions.file}
+ checkstyle.additional.suppressions.file=${checkstyle.additional.suppressions.file}
+
+ true
+
+ ${maven-checkstyle-plugin.includeTestSourceDirectory}
+
+ ${maven-checkstyle-plugin.failsOnError}
+
+
+ ${maven-checkstyle-plugin.failOnViolation}
+
+
+
+ check
+
+
+
+ no-http-checkstyle-validation
+ validate
+ true
+
+ ${disable.nohttp.checks}
+ ${checkstyle.nohttp.file}
+ **/*
+ **/.idea/**/*,**/.git/**/*,**/target/**/*,**/*.log
+ ./
+
+
+ check
+
+
+
+
+
+
+
+
+ repo.spring.io
+ Spring Release Repository
+ https://repo.spring.io/libs-release-local
+
+
+ repo.spring.io
+ Spring Snapshot Repository
+ https://repo.spring.io/libs-snapshot-local
+
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+ true
+
+
+
+
+
+
+
+ milestone
+
+
+ repo.spring.io
+ Spring Milestone Repository
+ https://repo.spring.io/libs-milestone-local
+
+
+
+
+ central
+
+
+
+ maven-gpg-plugin
+ 1.6
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
+ sonatype-nexus-staging
+ Nexus Release Repository
+ https://oss.sonatype.org/service/local/staging/deploy/maven2/
+
+
+ sonatype-nexus-snapshots
+ Sonatype Nexus Snapshots
+ https://oss.sonatype.org/content/repositories/snapshots/
+
+
+
+
+
diff --git a/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/README.adoc b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/README.adoc
new file mode 100644
index 00000000..cbd50246
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/README.adoc
@@ -0,0 +1,44 @@
+= Spring Cloud Stream & Task Maven Documentation Plugin
+
+Maven plugin for generating documentation for Spring Cloud stream and task app starters.
+
+Assuming a Spring Cloud Stream / Task app (or app starter) has
+specified selected configuration properties to be visible (i.e., providing src/main/resources/META-INF/dataflow-configuration-metadata.properties),
+this plugin will help automate the documentation of such properties.
+https://docs.spring.io/spring-cloud-dataflow/docs/1.1.0.M2/reference/html/spring-cloud-dataflow-register-apps.html#spring-cloud-dataflow-stream-app-whitelisting[whitelisted]
+some configuration properties, this plugin will help automate the documentation of such properties.
+
+== Usage
+
+To use this plugin, simply add the following markers to your project `README.adoc` file:
+
+```
+//tag::configuration-properties[]
+//end::configuration-properties[]
+```
+
+
+Then, configure this plugin for your app project (either directly or through a parent POM):
+```
+
+
+
+ org.springframework.cloud.stream.app.plugin
+ spring-cloud-stream-app-documentation-maven-plugin
+ 1.0.0.BUILD-SNAPSHOT
+
+
+ generate-documentation
+ verify
+
+ generate-documentation
+
+
+
+
+
+
+```
+
+Documentation for the visible properties shall appear on next build, which should be committed under VCS.
+
diff --git a/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/pom.xml b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/pom.xml
new file mode 100644
index 00000000..b01b48f9
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/pom.xml
@@ -0,0 +1,94 @@
+
+
+ 4.0.0
+
+ org.springframework.cloud
+ spring-cloud-dataflow-apps-plugin-parent
+ 1.0.8-SNAPSHOT
+ ..
+
+
+ spring-cloud-dataflow-apps-docs-plugin
+ maven-plugin
+
+
+
+ org.apache.maven
+ maven-plugin-api
+ 3.5.2
+
+
+ org.apache.maven
+ maven-core
+ 3.5.2
+
+
+ org.springframework.cloud
+ spring-cloud-dataflow-configuration-metadata
+ 2.7.0
+
+
+
+ org.apache.maven.plugin-tools
+ maven-plugin-annotations
+ 3.4
+ provided
+
+
+
+ junit
+ junit
+ 4.12
+ test
+
+
+ org.assertj
+ assertj-core
+ 3.15.0
+ test
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-plugin-plugin
+ 3.5
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+
+
+
+ spring
+
+
+
+ true
+
+ spring-snapshots
+ Spring Snapshots
+ https://repo.spring.io/snapshot
+
+
+
+ false
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
+
+
+
diff --git a/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/src/main/java/org/springframework/cloud/dataflow/app/plugin/ConfigurationMetadataDocumentationMojo.java b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/src/main/java/org/springframework/cloud/dataflow/app/plugin/ConfigurationMetadataDocumentationMojo.java
new file mode 100644
index 00000000..5371f78e
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/src/main/java/org/springframework/cloud/dataflow/app/plugin/ConfigurationMetadataDocumentationMojo.java
@@ -0,0 +1,424 @@
+/*
+ * Copyright 2016-2020 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.springframework.cloud.dataflow.app.plugin;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.nio.file.Files;
+import java.nio.file.StandardCopyOption;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.function.Function;
+import java.util.jar.Manifest;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.DependencyResolutionRequiredException;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.plugins.annotations.ResolutionScope;
+import org.apache.maven.project.MavenProject;
+
+import org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty;
+import org.springframework.boot.loader.archive.Archive;
+import org.springframework.boot.loader.archive.ExplodedArchive;
+import org.springframework.boot.loader.archive.JarFileArchive;
+import org.springframework.cloud.dataflow.configuration.metadata.BootApplicationConfigurationMetadataResolver;
+import org.springframework.cloud.dataflow.configuration.metadata.BootClassLoaderFactory;
+import org.springframework.util.ClassUtils;
+import org.springframework.util.StringUtils;
+
+/**
+ * A maven plugin that will scan an asciidoc file for special comment markers and replace
+ * everything in between with a listing of visible configuration properties for a Spring
+ * Cloud Stream/Task app. Applications with multiple properties prefixes are grouped by default.
+ * This can be disabled by using {@code //tag::configuration-properties[group=false]}.
+ *
+ * @author Eric Bottard
+ * @author David Turanski
+ * @see Whitelisting
+ * Properties
+ */
+@Mojo(name = "generate-documentation", requiresDependencyResolution = ResolutionScope.RUNTIME)
+public class ConfigurationMetadataDocumentationMojo extends AbstractMojo {
+
+ static final String CONFIGURATION_PROPERTIES_START_TAG = "//tag::configuration-properties[";
+
+ static final String CONFIGURATION_PROPERTIES_END_TAG = "//end::configuration-properties[]";
+
+ private BootApplicationConfigurationMetadataResolver metadataResolver = new BootApplicationConfigurationMetadataResolver(
+ imageName -> null);
+
+ @Parameter(defaultValue = "${project}")
+ private MavenProject mavenProject;
+
+ @Parameter(defaultValue = "false")
+ private boolean failOnMissingDescription;
+
+ private boolean grouped = true;
+
+ public void execute() throws MojoExecutionException {
+
+ File readme = new File(mavenProject.getBasedir(), "README.adoc");
+ if (!readme.exists()) {
+ getLog().info(String.format("No README.adoc file found in %s, skipping", mavenProject.getBasedir()));
+ return;
+ }
+
+ Artifact artifact = mavenProject.getArtifact();
+ if (artifact.getFile() == null) {
+ getLog().info(String.format("Project in %s does not produce a build artifact, skipping",
+ mavenProject.getBasedir()));
+ return;
+ }
+
+ File tmp = new File(readme.getPath() + ".tmp");
+ try (PrintWriter out = new PrintWriter(tmp);
+ BufferedReader reader = new BufferedReader(new FileReader(readme))) {
+
+ String line;
+ do {
+ line = reader.readLine();
+ out.println(line);
+ }
+ while (line != null && !line.startsWith(CONFIGURATION_PROPERTIES_START_TAG));
+ if (line == null) {
+ getLog().info("No documentation section marker found");
+ return;
+ }
+
+ Map startTagAttributes = startTagAttributes(line);
+
+ if ("false".equals(startTagAttributes.get("group"))) {
+ grouped = false;
+ }
+
+ ScatteredArchive archive = new ScatteredArchive(mavenProject);
+ BootClassLoaderFactory bootClassLoaderFactory = new BootClassLoaderFactory(archive, null);
+ try (URLClassLoader classLoader = bootClassLoaderFactory.createClassLoader()) {
+ debug(classLoader);
+
+ List properties = metadataResolver.listProperties(archive, false);
+ Collections.sort(properties, Comparator.comparing(ConfigurationMetadataProperty::getId));
+
+ Map> groupedProperties = groupProperties(properties);
+
+ grouped = grouped && groupedProperties.size() > 1;
+
+ if (grouped) {
+ out.println("Properties grouped by prefix:\n");
+ groupedProperties.forEach((group, props) -> {
+ getLog().debug(" Documenting group " + group);
+ out.println(asciidocForGroup(group));
+ listProperties(props, out, classLoader, prop -> prop.getName());
+ });
+
+ }
+ else {
+ listProperties(properties, out, classLoader, prop -> prop.getId());
+ }
+ do {
+ line = reader.readLine();
+ // drop lines
+ }
+ while (!line.startsWith(CONFIGURATION_PROPERTIES_END_TAG));
+
+ // Copy remaining lines, including //end::configuration-properties[]
+ while (line != null) {
+ out.println(line);
+ line = reader.readLine();
+ }
+ getLog().info(String.format("Documented %d configuration properties", properties.size()));
+ }
+ }
+ catch (Exception e) {
+ tmp.delete();
+ throw new MojoExecutionException("Error generating documentation", e);
+ }
+
+ try {
+ Files.move(tmp.toPath(), readme.toPath(), StandardCopyOption.REPLACE_EXISTING);
+ }
+ catch (IOException e) {
+ throw new MojoExecutionException("Error moving tmp file to README.adoc", e);
+ }
+ }
+
+ private void listProperties(List properties, PrintWriter out,
+ ClassLoader classLoader,
+ Function propertyValue) {
+ for (ConfigurationMetadataProperty property : properties) {
+ getLog().debug("Documenting " + property.getId());
+ out.println(asciidocFor(property, classLoader, propertyValue));
+ }
+
+ }
+
+ private Map> groupProperties(
+ List properties) {
+ Map> groupedProperties = new LinkedHashMap<>();
+ properties.forEach(property -> {
+ String group = group(property.getId());
+ if (!groupedProperties.containsKey(group)) {
+ groupedProperties.put(group, new LinkedList<>());
+ }
+ groupedProperties.get(group).add(property);
+ });
+ return groupedProperties;
+ }
+
+ private String group(String id) {
+ return id.lastIndexOf('.') > 0 ? id.substring(0, id.lastIndexOf('.')) : "";
+ }
+
+ private void debug(ClassLoader classLoader) {
+ if (classLoader instanceof URLClassLoader) {
+ List urls = Arrays.asList(((URLClassLoader) classLoader).getURLs());
+ getLog().debug("Classloader has the following URLs:\n" + urls.toString().replace(',', '\n'));
+ }
+ }
+
+ private String asciidocFor(ConfigurationMetadataProperty property, ClassLoader classLoader,
+ Function propertyValue) {
+ return String.format("$$%s$$:: $$%s$$ *($$%s$$, default: `$$%s$$`%s)*",
+ propertyValue.apply(property),
+ niceDescription(property),
+ niceType(property),
+ niceDefault(property),
+ maybeHints(property, classLoader));
+ }
+
+ private String asciidocForGroup(String group) {
+ return "\n=== " + group + "\n";
+ }
+
+ private Map startTagAttributes(String startTag) {
+ String attrs = startTag.substring(startTag.indexOf('[') + 1, startTag.indexOf(']'));
+ Set set = StringUtils.commaDelimitedListToSet(attrs);
+ Map attributes = new LinkedHashMap<>();
+ set.forEach(attr -> {
+ String[] keyValue = attr.split("=");
+ attributes.put(keyValue[0].trim(), keyValue.length == 2 ? keyValue[1].trim() : "");
+ });
+ return attributes;
+ }
+
+ private String niceDescription(ConfigurationMetadataProperty property) {
+ if (property.getDescription() == null) {
+ if (failOnMissingDescription) {
+ throw new RuntimeException("Missing description for property " + property.getId());
+ }
+ else {
+ return "";
+ }
+ }
+ return property.getDescription();
+ }
+
+ private CharSequence maybeHints(ConfigurationMetadataProperty property, ClassLoader classLoader) {
+ String type = property.getType();
+ if (type == null) {
+ return "";
+ }
+
+ type = type.replace('$', '.');
+ if (ClassUtils.isPresent(type, classLoader)) {
+ Class> clazz = ClassUtils.resolveClassName(type, classLoader);
+ if (clazz.isEnum()) {
+ return ", possible values: `" + StringUtils.arrayToDelimitedString(clazz.getEnumConstants(), "`,`")
+ + "`";
+ }
+ }
+ return "";
+ }
+
+ private String niceDefault(ConfigurationMetadataProperty property) {
+ if (property.getDefaultValue() == null) {
+ return "";
+ }
+ else if ("".equals(property.getDefaultValue())) {
+ return "";
+ }
+ else {
+ return stringify(property.getDefaultValue());
+ }
+ }
+
+ private String stringify(Object element) {
+ Class> clazz = element.getClass();
+ if (clazz == byte[].class) {
+ return Arrays.toString((byte[]) element);
+ }
+ else if (clazz == short[].class) {
+ return Arrays.toString((short[]) element);
+ }
+ else if (clazz == int[].class) {
+ return Arrays.toString((int[]) element);
+ }
+ else if (clazz == long[].class) {
+ return Arrays.toString((long[]) element);
+ }
+ else if (clazz == char[].class) {
+ return Arrays.toString((char[]) element);
+ }
+ else if (clazz == float[].class) {
+ return Arrays.toString((float[]) element);
+ }
+ else if (clazz == double[].class) {
+ return Arrays.toString((double[]) element);
+ }
+ else if (clazz == boolean[].class) {
+ return Arrays.toString((boolean[]) element);
+ }
+ else if (element instanceof Object[]) {
+ return Arrays.deepToString((Object[]) element);
+ }
+ else {
+ return element.toString();
+ }
+ }
+
+ private String niceType(ConfigurationMetadataProperty property) {
+ String type = property.getType();
+ if (type == null) {
+ return "";
+ }
+ return niceType(type);
+ }
+
+ String niceType(String type) {
+ List parts = new ArrayList<>();
+ int openBrackets = 0;
+ int lastGenericPart = 0;
+ for (int i = 0; i < type.length(); i++) {
+ switch (type.charAt(i)) {
+ case '<':
+ if (openBrackets++ == 0) {
+ parts.add(type.substring(0, i));
+ lastGenericPart = i + 1;
+ }
+ break;
+ case '>':
+ if (--openBrackets == 0) {
+ parts.add(type.substring(lastGenericPart, i));
+ }
+ break;
+ case ',':
+ if (openBrackets == 1) {
+ parts.add(type.substring(lastGenericPart, i));
+ lastGenericPart = i + 1;
+ }
+ break;
+ case ' ':
+ if (openBrackets == 1) {
+ lastGenericPart++;
+ }
+ break;
+ }
+ }
+ if (parts.isEmpty()) {
+ return unqualify(type); // simple type
+ }
+ else { // type with generics
+ StringBuilder sb = new StringBuilder(unqualify(parts.get(0)));
+ for (int i = 1; i < parts.size(); i++) {
+ if (i == 1) {
+ sb.append('<');
+ }
+ sb.append(unqualify(niceType(parts.get(i))));
+ if (i == parts.size() - 1) {
+ sb.append('>');
+ }
+ else {
+ sb.append(", ");
+ }
+ }
+ return sb.toString();
+ }
+ }
+
+ private String unqualify(String type) {
+ int lastDot = type.lastIndexOf('.');
+ int lastDollar = type.lastIndexOf('$');
+ return type.substring(Math.max(lastDot, lastDollar) + 1);
+ }
+
+ /**
+ * An adapter to boot {@link Archive} that satisfies just enough of the API to craft a
+ * ClassLoader that "sees" all the properties that this Mojo tries to document.
+ * @author Eric Bottard
+ */
+ private static final class ScatteredArchive implements Archive {
+
+ private final MavenProject mavenProject;
+
+ private ScatteredArchive(MavenProject mavenProject) {
+
+ this.mavenProject = mavenProject;
+ }
+
+ @Override
+ public URL getUrl() throws MalformedURLException {
+ return mavenProject.getArtifact().getFile().toURI().toURL();
+ }
+
+ @Override
+ public Manifest getManifest() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public List getNestedArchives(EntryFilter ignored) throws IOException {
+ try {
+ List archives = new ArrayList<>(mavenProject.getRuntimeClasspathElements().size());
+ for (String dep : mavenProject.getRuntimeClasspathElements()) {
+ File file = new File(dep);
+ archives.add(file.isDirectory() ? new ExplodedArchive(file) : new JarFileArchive(file));
+ }
+ return archives;
+ }
+ catch (DependencyResolutionRequiredException e) {
+ throw new IOException("Could not create boot archive", e);
+ }
+
+ }
+
+ @Override
+ public Iterator iterator() {
+ // BootClassLoaderFactory.createClassLoader (which uses this iterator call) is not
+ // actually
+ // used here. Returning the simples thing that works.
+ return Collections.emptyIterator();
+ }
+ }
+}
diff --git a/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/src/test/java/org/springframework/cloud/dataflow/app/plugin/ConfigurationMetadataDocumentationMojoTests.java b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/src/test/java/org/springframework/cloud/dataflow/app/plugin/ConfigurationMetadataDocumentationMojoTests.java
new file mode 100644
index 00000000..f5b72ced
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-docs-plugin/src/test/java/org/springframework/cloud/dataflow/app/plugin/ConfigurationMetadataDocumentationMojoTests.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2017-2020 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.springframework.cloud.dataflow.app.plugin;
+
+import org.junit.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class ConfigurationMetadataDocumentationMojoTests {
+
+ @Test
+ public void testJavaTypeBeautifier() {
+ ConfigurationMetadataDocumentationMojo mojo = new ConfigurationMetadataDocumentationMojo();
+ String s = mojo.niceType("java.lang.String");
+ assertThat(s).isEqualTo("String");
+
+ s = mojo.niceType("java.lang.Class>");
+ assertThat(s).isEqualTo("Class>");
+
+ s = mojo.niceType("java.util.Map$Entry>>");
+ assertThat(s).isEqualTo("Entry>>");
+ }
+
+}
diff --git a/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/README.adoc b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/README.adoc
new file mode 100644
index 00000000..e7cf3592
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/README.adoc
@@ -0,0 +1,302 @@
+= spring-cloud-dataflow-apps-generator-plugin
+
+Maven plugin for generating spring cloud stream applications: https://github.com/spring-cloud/stream-applications
+It generates a separate maven project for every configured binder.
+
+Plugin `Application` section helps to configure the application project independently form the Binders that
+can be used. The `Binders` section helps to define the Binder specific configurations, that are merged to
+the `Application` configurations to generate the binder specific maven projects.
+
+The `Global` section (e.g. `global.application` and `global.binders`) helps to define configurations sharable
+between many Applications and Binders.
+
+As the following diagram illustrates, both the `Application` and the
+`Binder` allow configuring various application and maven properties:
+
+image::src/main/resources/doc/MojoConfiguration.jpg[]
+
+== Build
+
+mvn clean package [Requires JDK 8]
+
+== Sample Configuration for generating spring cloud stream apps
+
+In the parent POM define the `Application` and `Binder` configurations common for all applications to be generated.
+Do this under the `pluginManagement` pom section and use the plugin's `global` configuration:
+
+[source, xml]
+----
+
+
+
+ org.springframework.cloud
+ spring-cloud-dataflow-apps-generator-plugin
+ 1.0.0-SNAPSHOT
+
+
+ app-gen
+ package
+
+ generate-app
+
+
+
+
+ ${basedir}/apps
+
+
+
+
+ ${spring-boot.version}
+
+
+ true
+
+
+
+ 2.0.2.BUILD-SNAPSHOT
+
+
+
+
+
+ org.springframework.cloud.fn
+ function-dependencies
+ ${java-functions.version}
+
+
+ org.springframework.cloud
+ spring-cloud-stream-dependencies
+ ${spring-cloud-stream-dependencies.version}
+
+
+ org.springframework.cloud
+ spring-cloud-function-dependencies
+ ${spring-cloud-function-dependencies.version}
+
+
+ org.springframework.cloud
+ spring-cloud-dependencies
+ ${spring-cloud-dependencies.version}
+
+
+
+
+ org.springframework.cloud.stream.app
+ stream-applications-security-common
+
+
+ org.springframework.cloud.stream.app
+ stream-applications-micrometer-common
+
+
+ org.springframework.cloud.stream.app
+ stream-applications-postprocessor-common
+
+
+ io.micrometer
+ micrometer-registry-prometheus
+
+
+ io.micrometer.prometheus
+ prometheus-rsocket-spring
+
+
+ io.micrometer
+ micrometer-registry-wavefront
+
+
+ io.pivotal.cfenv
+ java-cfenv-boot
+
+
+ org.springframework.boot
+ spring-boot-configuration-processor
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-logging
+
+
+ org.springframework.boot
+ spring-boot-starter-security
+
+
+
+
+
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-stream-binder-kafka
+
+
+
+
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-stream-binder-rabbit
+
+
+
+
+
+
+
+
+
+
+----
+
+Above global configurations will be reused by all children applications.
+
+In addition, the child application can add application specific configurations, contributed to the inherited from
+to the global:
+
+[source, xml]
+----
+
+
+ org.springframework.cloud
+ spring-cloud-dataflow-apps-generator-plugin
+ 1.0.0-SNAPSHOT
+
+
+ syslog
+ source
+ ${project.version}
+ org.springframework.cloud.fn.supplier.syslog.SyslogSupplierConfiguration.class
+
+
+
+
+ org.springframework.cloud.fn
+ syslog-supplier
+
+
+ org.springframework.cloud.stream.app
+ stream-applications-composite-function-support
+ ${stream-apps-core.version}
+
+
+
+
+
+
+ ...
+
+----
+
+
+== Configure Solace and Pubsub binders support
+
+To generate applications for https://github.com/SolaceProducts/spring-cloud-stream-binder-solace[Solace] binders, extend your `binders` section with following configuration:
+
+[source, xml]
+----
+
+ ....
+
+
+
+
+ com.solace.spring.cloud
+ spring-cloud-starter-stream-solace
+ 1.2.1
+
+
+
+
+ ....
+
+----
+
+You can add it either to your application's POM or to the parent's `global` POM sections.
+
+Similar to generate application for the https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-pubsub-stream-binder[PubSub]
+binders and to your binders section configuration like this:
+
+[source, xml]
+----
+
+...
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-gcp-dependencies
+ 1.2.4.RELEASE
+
+
+
+
+ org.springframework.cloud
+ spring-cloud-gcp-pubsub-stream-binder
+
+
+
+
+...
+
+----
+
+== Custom Spring Boot Maven Plugin Configuration
+
+Spring Boot Maven plugin offers a number of customization options by specifying a configuration section in the plugin definition.
+For example, using the custom configuration, you can instruct the plugin to unpack a particular dependency.
+You would do that using Spring Boot Maven plugin as below.
+```
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ org.python
+ jython-standalone
+
+
+
+
+```
+
+When using the app generator plugin, you can ask the plugin to include this information when it generates the necessary XML snippets for adding the Spring Boot Maven plugin.
+Below is an example of doing so.
+```
+
+ org.springframework.cloud
+ spring-cloud-dataflow-apps-generator-plugin
+
+
+ ...
+
+
+
+ org.python
+ jython-standalone
+
+
+ ]]>
+
+ ...
+
+
+```
+
+Pay attention to how the Spring Boot plugin configuration is wrapped inside a `CDATA` element.
+This is necessary for the app generator to properly parse this information.
\ No newline at end of file
diff --git a/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/pom.xml b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/pom.xml
new file mode 100644
index 00000000..9c0b289e
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/pom.xml
@@ -0,0 +1,166 @@
+
+
+ 4.0.0
+
+ spring-cloud-dataflow-apps-generator-plugin
+ maven-plugin
+ spring-cloud-dataflow-apps-generator-plugin
+
+
+ org.springframework.cloud
+ spring-cloud-dataflow-apps-plugin-parent
+ 1.0.8-SNAPSHOT
+ ..
+
+
+
+ UTF-8
+ 3.9.2
+ 3.9.0
+ 1.15
+ 6.0.8
+ 2.12.0
+
+
+
+
+ com.samskivert
+ jmustache
+ ${jmustache.version}
+
+
+
+ org.springframework
+ spring-core
+ ${spring.version}
+
+
+
+ org.apache.maven
+ maven-plugin-api
+ provided
+ ${maven.version}
+
+
+ org.apache.maven
+ maven-core
+ ${maven.version}
+
+
+ org.apache.maven.plugin-tools
+ maven-plugin-annotations
+ ${maven.plugin.version}
+ provided
+
+
+
+ commons-io
+ commons-io
+ ${commons.io.version}
+
+
+
+
+ junit
+ junit
+ 4.13
+ test
+
+
+ org.apache.maven.plugin-testing
+ maven-plugin-testing-harness
+ 3.3.0
+ test
+
+
+ org.apache.maven
+ maven-compat
+ ${maven.version}
+ test
+
+
+ org.assertj
+ assertj-core
+ 3.15.0
+ test
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-plugin-plugin
+ ${maven.plugin.version}
+
+ generate-app
+ true
+
+
+
+ mojo-descriptor
+
+ descriptor
+
+
+
+ help-goal
+
+ helpmojo
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+
+
+
+ run-its
+
+
+
+ org.apache.maven.plugins
+ maven-invoker-plugin
+ 3.2.1
+
+ true
+ ${project.build.directory}/it
+
+ */pom.xml
+
+ verify
+ ${project.build.directory}/local-repo
+ src/it/settings.xml
+
+ clean
+ test-compile
+
+
+
+
+ integration-test
+
+ install
+ integration-test
+ verify
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/src/main/java/org/springframework/cloud/dataflow/app/plugin/MavenXmlWriter.java b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/src/main/java/org/springframework/cloud/dataflow/app/plugin/MavenXmlWriter.java
new file mode 100644
index 00000000..8294dde2
--- /dev/null
+++ b/spring-cloud-dataflow-apps-plugin/spring-cloud-dataflow-apps-generator-plugin/src/main/java/org/springframework/cloud/dataflow/app/plugin/MavenXmlWriter.java
@@ -0,0 +1,173 @@
+/*
+ * Copyright 2020-2020 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.springframework.cloud.dataflow.app.plugin;
+
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.io.Writer;
+import java.lang.reflect.Method;
+import java.util.function.Consumer;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+import org.apache.maven.model.Plugin;
+import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
+import org.codehaus.plexus.util.xml.Xpp3Dom;
+import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
+import org.codehaus.plexus.util.xml.pull.MXSerializer;
+import org.codehaus.plexus.util.xml.pull.XmlSerializer;
+
+/**
+ * Uses the private MavenXpp3Writer write methods to convert Model elements into XML strings.
+ *
+ * @author Christian Tzolov
+ */
+public final class MavenXmlWriter {
+
+ private MavenXmlWriter() {
+
+ }
+
+ /**
+ * Serializes any instance of a e.g. org.apache.maven.model.XXXX class into XML text.
+ * Via reflections calls the private MavenXpp3Writer#writeXXXX(XXXX, String, XmlSerializer) method.
+ * As xml tag uses the lower case of the XXXX class name (e.g. xxxx).
+ *
+ * If above name conventions don't hold or additional processing is required implement a dedicated overload method.
+ * For example see {@link #toXml(Plugin)}
+ *
+ * @param element instance of a org.apache.maven.model.* class.
+ * @param element type.
+ * @return XML text serialization of the element.
+ */
+ public static String toXml(T element) {
+ String privateMethodName = "write" + element.getClass().getSimpleName();
+ String xmlTagName = element.getClass().getSimpleName().toLowerCase();
+ return write(serializer -> invokeMavenXppWriteMethod(element, privateMethodName, xmlTagName, serializer));
+ }
+
+ /**
+ * Serializes an {@link Plugin} instance into XML text, using reflection to invoke the private
+ * MavenXpp3Writer#writePlugin(Plugin, String, XmlSerializer) method. The Plugin Configuration block (when present)
+ * requires special handling to convert String values into Xpp3Dom object before writing.
+ *
+ * For Plugin Configuration you must nest the configuration content into a CDATA block like shown here:
+ *