You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by nsengupta <se...@gmail.com> on 2016/04/28 18:28:59 UTC

Problem in creating quickstart project using archetype (Scala)

Hello all,

I don't know if anyone else has faced his; I haven't so far.

When I try to create a new project template following the instructions  here
<https://ci.apache.org/projects/flink/flink-docs-master/quickstart/scala_api_quickstart.html#requirements> 
, it fails.

This is what happens (along with the command I give):

nirmalya@Cheetah:~/Workspace-Flink$ mvn archetype:generate                              
\
>       -DarchetypeGroupId=org.apache.flink              \
>       -DarchetypeArtifactId=flink-quickstart-scala     \
>       -DarchetypeVersion=1.1-SNAPSHOT
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO]
------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:2.3:generate (default-cli) >
generate-sources @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:2.3:generate (default-cli) <
generate-sources @ standalone-pom <<<
[INFO] 
[INFO] --- maven-archetype-plugin:2.3:generate (default-cli) @
standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype repository not defined. Using the one from
[org.apache.flink:flink-quickstart-scala:1.0.2] found in catalog remote
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 01:15 min
[INFO] Finished at: 2016-04-28T22:22:57+05:30
[INFO] Final Memory: 14M/226M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli)
on project standalone-pom: The desired archetype does not exist
(org.apache.flink:flink-quickstart-scala:1.1-SNAPSHOT) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
nirmalya@Cheetah:~/Workspace-Flink$ 


Could someone please point out the mistake? 

-- Nirmalya



--
View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Problem-in-creating-quickstart-project-using-archetype-Scala-tp6560.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.

Re: Problem in creating quickstart project using archetype (Scala)

Posted by Ufuk Celebi <uc...@apache.org>.
Hey Nirmalya,

this is not your fault, but a shortcoming of the docs. ;) I've created
an issue for it here: https://issues.apache.org/jira/browse/FLINK-3884

On Mon, May 2, 2016 at 8:01 PM, nsengupta <se...@gmail.com> wrote:
> Fantastic! Many thanks for clarifying, Aljoscha!
>
> I blindly followed what that page said. Instead, I should have tried with
> the stable version.
>
> - Nirmalya
>
>
>
> --
> View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Problem-in-creating-quickstart-project-using-archetype-Scala-tp6560p6624.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.

Re: Problem in creating quickstart project using archetype (Scala)

Posted by nsengupta <se...@gmail.com>.
Fantastic! Many thanks for clarifying, Aljoscha! 

I blindly followed what that page said. Instead, I should have tried with
the stable version.

- Nirmalya



--
View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Problem-in-creating-quickstart-project-using-archetype-Scala-tp6560p6624.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.

Re: Problem in creating quickstart project using archetype (Scala)

Posted by Aljoscha Krettek <al...@apache.org>.
Hi,
I'm sorry for the inconvenience, for the -SNAPSHOT release versions one
must also append the address of the repository to the command, like this:

$ mvn archetype:generate \
   -DarchetypeGroupId=org.apache.flink \
   -DarchetypeArtifactId=flink-quickstart-scala \
   -DarchetypeVersion=1.1-SNAPSHOT \
   -DarchetypeCatalog=
https://repository.apache.org/content/repositories/snapshots/

or you could use the stable version:

mvn archetype:generate \
  -DarchetypeGroupId=org.apache.flink \
  -DarchetypeArtifactId=flink-quickstart-java \
  -DarchetypeVersion=1.0.2

Cheers,
Aljoscha

On Thu, 28 Apr 2016 at 19:02 nsengupta <se...@gmail.com> wrote:

> Hello all,
>
> I don't know if anyone else has faced his; I haven't so far.
>
> When I try to create a new project template following the instructions
> here
> <
> https://ci.apache.org/projects/flink/flink-docs-master/quickstart/scala_api_quickstart.html#requirements
> >
> , it fails.
>
> This is what happens (along with the command I give):
>
> nirmalya@Cheetah:~/Workspace-Flink$ mvn archetype:generate
> \
> >       -DarchetypeGroupId=org.apache.flink              \
> >       -DarchetypeArtifactId=flink-quickstart-scala     \
> >       -DarchetypeVersion=1.1-SNAPSHOT
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> maven-archetype-plugin:2.3:generate (default-cli) >
> generate-sources @ standalone-pom >>>
> [INFO]
> [INFO] <<< maven-archetype-plugin:2.3:generate (default-cli) <
> generate-sources @ standalone-pom <<<
> [INFO]
> [INFO] --- maven-archetype-plugin:2.3:generate (default-cli) @
> standalone-pom ---
> [INFO] Generating project in Interactive mode
> [INFO] Archetype repository not defined. Using the one from
> [org.apache.flink:flink-quickstart-scala:1.0.2] found in catalog remote
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 01:15 min
> [INFO] Finished at: 2016-04-28T22:22:57+05:30
> [INFO] Final Memory: 14M/226M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli)
> on project standalone-pom: The desired archetype does not exist
> (org.apache.flink:flink-quickstart-scala:1.1-SNAPSHOT) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> nirmalya@Cheetah:~/Workspace-Flink$
>
>
> Could someone please point out the mistake?
>
> -- Nirmalya
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Problem-in-creating-quickstart-project-using-archetype-Scala-tp6560.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>