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

Michael Fong edited comment on FLINK-7839 at 10/14/17 7:56 AM:
---------------------------------------------------------------

>From above comment, I propose we could put a note in the document addressing 
>the following:
1. for users with maven 3.0+
1.1 Get rid of '-DarchetypeCatalog' 
1.2 Optionally define snapshot repository in settings.xml if truly need the 
latest snapshot (i.e.  perhaps for dev) ; otherwise, maven should locate the 
latest release repository by default .
2. for users with older maven
1.1 Optionally provide '-DarchetypeCatalog' as maven would attempt to retrieve 
meta from snapshot repo over release repo.

[~rmetzger] What do you think?


was (Author: mcfongtw):
>From above comment, I propose we could put a note in the document addressing 
>the following:
1. for users with maven 3.0+
1.1 Get rid of '-DarchetypeCatalog' 
1.2 Optionally define snapshot repository in settings.xml (only for dev, i 
assume) ; otherwise, maven should locate the latest release repository by 
default .
2. for users with older maven
1.1 Optionally provide '-DarchetypeCatalog' as maven would attempt to retrieve 
meta from snapshot repo over release repo.

> 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)

Reply via email to