You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by al...@apache.org on 2017/10/21 07:39:45 UTC
flink git commit: [FLINK-7839] [doc] Add a note on possible maven
failure for creating quickstart project.
Repository: flink
Updated Branches:
refs/heads/master 558c71d2e -> 8d2b6a8d6
[FLINK-7839] [doc] Add a note on possible maven failure for creating quickstart project.
This only applies before project release; {%site.is_stable == false %}.
Add an warning note on recent Maven change (3.0+) for -DarchetypeCatalog while creating quickstart project.
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/8d2b6a8d
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/8d2b6a8d
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/8d2b6a8d
Branch: refs/heads/master
Commit: 8d2b6a8d646db77892bc4f54f4d86b95bbe298ea
Parents: 558c71d
Author: Michael Fong <mc...@gmail.com>
Authored: Tue Oct 17 23:32:18 2017 +0800
Committer: Aljoscha Krettek <al...@gmail.com>
Committed: Sat Oct 21 09:38:02 2017 +0200
----------------------------------------------------------------------
docs/quickstart/java_api_quickstart.md | 6 ++++++
docs/quickstart/run_example_quickstart.md | 6 ++++++
docs/quickstart/scala_api_quickstart.md | 5 +++++
3 files changed, 17 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/8d2b6a8d/docs/quickstart/java_api_quickstart.md
----------------------------------------------------------------------
diff --git a/docs/quickstart/java_api_quickstart.md b/docs/quickstart/java_api_quickstart.md
index 109240b..38a2aa9 100644
--- a/docs/quickstart/java_api_quickstart.md
+++ b/docs/quickstart/java_api_quickstart.md
@@ -60,7 +60,13 @@ Use one of the following commands to __create a project__:
$ curl https://flink.apache.org/q/quickstart-SNAPSHOT.sh | bash
{% endif %}
{% endhighlight %}
+
</div>
+ {% unless site.is_stable %}
+ <p style="border-radius: 5px; padding: 5px" class="bg-danger">
+ <b>Note</b>: For Maven 3.0 or higher, it is no longer possible to specify the repository (-DarchetypeCatalog) via the commandline. If you wish to use the snapshot repository, you need to add a repository entry to your settings.xml. For details about this change, please refer to <a href="http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html">Maven official document</a>
+ </p>
+ {% endunless %}
</div>
## Inspect Project
http://git-wip-us.apache.org/repos/asf/flink/blob/8d2b6a8d/docs/quickstart/run_example_quickstart.md
----------------------------------------------------------------------
diff --git a/docs/quickstart/run_example_quickstart.md b/docs/quickstart/run_example_quickstart.md
index 683c5ce..cf73799 100644
--- a/docs/quickstart/run_example_quickstart.md
+++ b/docs/quickstart/run_example_quickstart.md
@@ -53,6 +53,12 @@ $ mvn archetype:generate \
-DinteractiveMode=false
{% endhighlight %}
+{% unless site.is_stable %}
+<p style="border-radius: 5px; padding: 5px" class="bg-danger">
+ <b>Note</b>: For Maven 3.0 or higher, it is no longer possible to specify the repository (-DarchetypeCatalog) via the commandline. If you wish to use the snapshot repository, you need to add a repository entry to your settings.xml. For details about this change, please refer to <a href="http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html">Maven official document</a>
+</p>
+{% endunless %}
+
You can edit the `groupId`, `artifactId` and `package` if you like. With the above parameters,
Maven will create a project structure that looks like this:
http://git-wip-us.apache.org/repos/asf/flink/blob/8d2b6a8d/docs/quickstart/scala_api_quickstart.md
----------------------------------------------------------------------
diff --git a/docs/quickstart/scala_api_quickstart.md b/docs/quickstart/scala_api_quickstart.md
index 33013e4..601ce24 100644
--- a/docs/quickstart/scala_api_quickstart.md
+++ b/docs/quickstart/scala_api_quickstart.md
@@ -146,6 +146,11 @@ Use one of the following commands to __create a project__:
{% endif %}
{% endhighlight %}
</div>
+ {% unless site.is_stable %}
+ <p style="border-radius: 5px; padding: 5px" class="bg-danger">
+ <b>Note</b>: For Maven 3.0 or higher, it is no longer possible to specify the repository (-DarchetypeCatalog) via the commandline. If you wish to use the snapshot repository, you need to add a repository entry to your settings.xml. For details about this change, please refer to <a href="http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html">Maven official document</a>
+ </p>
+ {% endunless %}
</div>