[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-21 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16213926#comment-16213926
 ] 

ASF GitHub Bot commented on FLINK-7839:
---

Github user mcfongtw commented on the issue:

https://github.com/apache/flink/pull/4848
  
Thanks!


> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
> Project: Flink
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 1.4.0
>Reporter: Gary Yao
>Assignee: Michael Fong
>  Labels: documentation
> Fix For: 1.4.0
>
>
> The documentation on creating quickstart projects is broken for SNAPSHOT 
> releases. For example, the documentation suggests to use the following 
> command to generate a Flink 1.4-SNAPSHOT project using maven archetypes:
> {code}
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.flink  \
>   -DarchetypeArtifactId=flink-quickstart-java  \
>   
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/
>  \
>   -DarchetypeVersion=1.4-SNAPSHOT
> {code}
> The command fails with the error:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) 
> on project flink-training-exercises: archetypeCatalog 
> 'https://repository.apache.org/content/repositories/snapshots/' is not 
> supported anymore. Please read the plugin documentation for details. -> [Help 
> 1]
> {code}
> This also affects the quickstart script.
> Since version 3.0.0, the archetype plugin does not allow to specify 
> repositories as command line arguments. See 
> http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-21 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16213927#comment-16213927
 ] 

ASF GitHub Bot commented on FLINK-7839:
---

Github user mcfongtw closed the pull request at:

https://github.com/apache/flink/pull/4848


> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
> Project: Flink
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 1.4.0
>Reporter: Gary Yao
>Assignee: Michael Fong
>  Labels: documentation
> Fix For: 1.4.0
>
>
> The documentation on creating quickstart projects is broken for SNAPSHOT 
> releases. For example, the documentation suggests to use the following 
> command to generate a Flink 1.4-SNAPSHOT project using maven archetypes:
> {code}
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.flink  \
>   -DarchetypeArtifactId=flink-quickstart-java  \
>   
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/
>  \
>   -DarchetypeVersion=1.4-SNAPSHOT
> {code}
> The command fails with the error:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) 
> on project flink-training-exercises: archetypeCatalog 
> 'https://repository.apache.org/content/repositories/snapshots/' is not 
> supported anymore. Please read the plugin documentation for details. -> [Help 
> 1]
> {code}
> This also affects the quickstart script.
> Since version 3.0.0, the archetype plugin does not allow to specify 
> repositories as command line arguments. See 
> http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-21 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16213795#comment-16213795
 ] 

ASF GitHub Bot commented on FLINK-7839:
---

Github user aljoscha commented on the issue:

https://github.com/apache/flink/pull/4848
  
Thanks a lot for adding this! 

I just merged, could you please close this PR if it doesn't close 
automatically?


> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
> Project: Flink
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 1.4.0
>Reporter: Gary Yao
>Assignee: Michael Fong
>  Labels: documentation
> Fix For: 1.4.0
>
>
> The documentation on creating quickstart projects is broken for SNAPSHOT 
> releases. For example, the documentation suggests to use the following 
> command to generate a Flink 1.4-SNAPSHOT project using maven archetypes:
> {code}
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.flink  \
>   -DarchetypeArtifactId=flink-quickstart-java  \
>   
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/
>  \
>   -DarchetypeVersion=1.4-SNAPSHOT
> {code}
> The command fails with the error:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) 
> on project flink-training-exercises: archetypeCatalog 
> 'https://repository.apache.org/content/repositories/snapshots/' is not 
> supported anymore. Please read the plugin documentation for details. -> [Help 
> 1]
> {code}
> This also affects the quickstart script.
> Since version 3.0.0, the archetype plugin does not allow to specify 
> repositories as command line arguments. See 
> http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-18 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16208896#comment-16208896
 ] 

ASF GitHub Bot commented on FLINK-7839:
---

Github user mcfongtw commented on the issue:

https://github.com/apache/flink/pull/4848
  
@aljoscha, do you think adding these note would suffice?


> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
> Project: Flink
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 1.4.0
>Reporter: Gary Yao
>Assignee: Michael Fong
>Priority: Blocker
>  Labels: documentation
> Fix For: 1.4.0
>
>
> The documentation on creating quickstart projects is broken for SNAPSHOT 
> releases. For example, the documentation suggests to use the following 
> command to generate a Flink 1.4-SNAPSHOT project using maven archetypes:
> {code}
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.flink  \
>   -DarchetypeArtifactId=flink-quickstart-java  \
>   
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/
>  \
>   -DarchetypeVersion=1.4-SNAPSHOT
> {code}
> The command fails with the error:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) 
> on project flink-training-exercises: archetypeCatalog 
> 'https://repository.apache.org/content/repositories/snapshots/' is not 
> supported anymore. Please read the plugin documentation for details. -> [Help 
> 1]
> {code}
> This also affects the quickstart script.
> Since version 3.0.0, the archetype plugin does not allow to specify 
> repositories as command line arguments. See 
> http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16207807#comment-16207807
 ] 

ASF GitHub Bot commented on FLINK-7839:
---

GitHub user mcfongtw opened a pull request:

https://github.com/apache/flink/pull/4848

[FLINK-7839] [doc] Add a note on possible maven failure for creating 
quickstart project



## What is the purpose of the change


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.



## Verifying this change

Only doc change




You can merge this pull request into a Git repository by running:

$ git pull https://github.com/mcfongtw/flink FLINK-7839

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/flink/pull/4848.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #4848


commit 499724706ac72ea2d5e4e2c1fa5655385b91a3c6
Author: Michael Fong 
Date:   2017-10-17T15:32:18Z

[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.




> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
> Project: Flink
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 1.4.0
>Reporter: Gary Yao
>Assignee: Michael Fong
>Priority: Blocker
>  Labels: documentation
> Fix For: 1.4.0
>
>
> The documentation on creating quickstart projects is broken for SNAPSHOT 
> releases. For example, the documentation suggests to use the following 
> command to generate a Flink 1.4-SNAPSHOT project using maven archetypes:
> {code}
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.flink  \
>   -DarchetypeArtifactId=flink-quickstart-java  \
>   
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/
>  \
>   -DarchetypeVersion=1.4-SNAPSHOT
> {code}
> The command fails with the error:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) 
> on project flink-training-exercises: archetypeCatalog 
> 'https://repository.apache.org/content/repositories/snapshots/' is not 
> supported anymore. Please read the plugin documentation for details. -> [Help 
> 1]
> {code}
> This also affects the quickstart script.
> Since version 3.0.0, the archetype plugin does not allow to specify 
> repositories as command line arguments. See 
> http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-17 Thread Michael Fong (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16207188#comment-16207188
 ] 

Michael Fong commented on FLINK-7839:
-

I looked at the doc code, and there is an if-statement that only considers to 
use 'archetypeCatalog' parameter when the project is still under development 
(variable: site.is_stable). That is, when the project is released, the 
parameter will not show up. Thus, I will put a note regarding to the recent 
maven changes if-and-only-if the site is under development. 

> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
> Project: Flink
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 1.4.0
>Reporter: Gary Yao
>Assignee: Michael Fong
>Priority: Blocker
>  Labels: documentation
> Fix For: 1.4.0
>
>
> The documentation on creating quickstart projects is broken for SNAPSHOT 
> releases. For example, the documentation suggests to use the following 
> command to generate a Flink 1.4-SNAPSHOT project using maven archetypes:
> {code}
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.flink  \
>   -DarchetypeArtifactId=flink-quickstart-java  \
>   
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/
>  \
>   -DarchetypeVersion=1.4-SNAPSHOT
> {code}
> The command fails with the error:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) 
> on project flink-training-exercises: archetypeCatalog 
> 'https://repository.apache.org/content/repositories/snapshots/' is not 
> supported anymore. Please read the plugin documentation for details. -> [Help 
> 1]
> {code}
> This also affects the quickstart script.
> Since version 3.0.0, the archetype plugin does not allow to specify 
> repositories as command line arguments. See 
> http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-16 Thread Aljoscha Krettek (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16205594#comment-16205594
 ] 

Aljoscha Krettek commented on FLINK-7839:
-

sounds good!

> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
> Project: Flink
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 1.4.0
>Reporter: Gary Yao
>Assignee: Michael Fong
>Priority: Blocker
>  Labels: documentation
> Fix For: 1.4.0
>
>
> The documentation on creating quickstart projects is broken for SNAPSHOT 
> releases. For example, the documentation suggests to use the following 
> command to generate a Flink 1.4-SNAPSHOT project using maven archetypes:
> {code}
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.flink  \
>   -DarchetypeArtifactId=flink-quickstart-java  \
>   
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/
>  \
>   -DarchetypeVersion=1.4-SNAPSHOT
> {code}
> The command fails with the error:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) 
> on project flink-training-exercises: archetypeCatalog 
> 'https://repository.apache.org/content/repositories/snapshots/' is not 
> supported anymore. Please read the plugin documentation for details. -> [Help 
> 1]
> {code}
> This also affects the quickstart script.
> Since version 3.0.0, the archetype plugin does not allow to specify 
> repositories as command line arguments. See 
> http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-13 Thread Michael Fong (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16204394#comment-16204394
 ] 

Michael Fong commented on FLINK-7839:
-

>From above comment, I propose we could put a note in document indicate 
1. Get rid of '-DarchetypeCatalog' for users with maven 3.0+
2. Optionally define snapshot repository in settings.xml (only for dev, i 
assume) ; otherwise, maven should locate the latest release repository by 
default .

> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
> Project: Flink
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 1.4.0
>Reporter: Gary Yao
>Assignee: Michael Fong
>Priority: Blocker
>  Labels: documentation
>
> The documentation on creating quickstart projects is broken for SNAPSHOT 
> releases. For example, the documentation suggests to use the following 
> command to generate a Flink 1.4-SNAPSHOT project using maven archetypes:
> {code}
> mvn archetype:generate \
>   -DarchetypeGroupId=org.apache.flink  \
>   -DarchetypeArtifactId=flink-quickstart-java  \
>   
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/
>  \
>   -DarchetypeVersion=1.4-SNAPSHOT
> {code}
> The command fails with the error:
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) 
> on project flink-training-exercises: archetypeCatalog 
> 'https://repository.apache.org/content/repositories/snapshots/' is not 
> supported anymore. Please read the plugin documentation for details. -> [Help 
> 1]
> {code}
> This also affects the quickstart script.
> Since version 3.0.0, the archetype plugin does not allow to specify 
> repositories as command line arguments. See 
> http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (FLINK-7839) Creating Quickstart project for SNAPSHOT version fails

2017-10-13 Thread Michael Fong (JIRA)

[ 
https://issues.apache.org/jira/browse/FLINK-7839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16204390#comment-16204390
 ] 

Michael Fong commented on FLINK-7839:
-

I can help update the document since I also encountered the same error for 
v1.4.0.  I could not see the same commands for earlier versions, thus I assume 
this was added in 1.4.0. 

{color:#f6c342}However, the url leads to a SNAPSHOT repository rather than a 
RELEASE repository. I am curious about which one should be used once 1.4.0 is 
released.{color}

For users with older maven, this command line should work just fine; however, 
for those with Maven 3.0+, you need to get rid of '-DarchetypeCatalog' argument 
to make it work. 

As for the missing 'archetypeCatalog' argument, you could optionally define a 
repository entry in settings.xml as official suggested 
(http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html).
 You will download latest snapshot meta while generating the quick-start 
project by executing the `mvn archetype:generate` For example, 

{code:bash}
[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @ standalone-pom 
---
[INFO] Generating project in Interactive mode
{color:#f6c342}[INFO] Archetype repository not defined. Using the one from 
[org.apache.flink:flink-quickstart-java:1.1-SNAPSHOT -> 
https://repository.apache.org/content/repositories/snapshots] found in catalog 
remote{color}
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart-java/1.4-SNAPSHOT/maven-metadata.xml
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart-java/1.4-SNAPSHOT/maven-metadata.xml
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart-java/1.4-SNAPSHOT/maven-metadata.xml
 (1.2 kB at 579 B/s)
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart-java/1.4-SNAPSHOT/maven-metadata.xml
 (1.2 kB at 580 B/s)
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart-java/1.4-SNAPSHOT/flink-quickstart-java-1.4-20171009.044311-294.pom
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart-java/1.4-SNAPSHOT/flink-quickstart-java-1.4-20171009.044311-294.pom
 (3.7 kB at 2.6 kB/s)
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart/1.4-SNAPSHOT/maven-metadata.xml
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart/1.4-SNAPSHOT/maven-metadata.xml
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart/1.4-SNAPSHOT/maven-metadata.xml
 (609 B at 415 B/s)
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart/1.4-SNAPSHOT/maven-metadata.xml
 (609 B at 414 B/s)
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart/1.4-SNAPSHOT/flink-quickstart-1.4-20171009.044305-294.pom
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart/1.4-SNAPSHOT/flink-quickstart-1.4-20171009.044305-294.pom
 (3.1 kB at 2.2 kB/s)
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-parent/1.4-SNAPSHOT/maven-metadata.xml
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-parent/1.4-SNAPSHOT/maven-metadata.xml
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-parent/1.4-SNAPSHOT/maven-metadata.xml
 (605 B at 444 B/s)
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-parent/1.4-SNAPSHOT/maven-metadata.xml
 (605 B at 429 B/s)
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-parent/1.4-SNAPSHOT/flink-parent-1.4-20171013.033404-301.pom
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-parent/1.4-SNAPSHOT/flink-parent-1.4-20171013.033404-301.pom
 (50 kB at 27 kB/s)
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart-java/1.4-SNAPSHOT/flink-quickstart-java-1.4-20171009.044311-294.jar
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/flink/flink-quickstart-java/1.4-SNAPSHOT/flink-quickstart-java-1.4-20171009.044311-294.jar
 (16 kB at 9.6 kB/s)
{code}



> Creating Quickstart project for SNAPSHOT version fails
> --
>
> Key: FLINK-7839
> URL: https://issues.apache.org/jira/browse/FLINK-7839
>