kafka-connect-archtype icon indicating copy to clipboard operation
kafka-connect-archtype copied to clipboard

Error running archetype:generate to generate skeleton

Open ryancrawcour opened this issue 6 years ago • 1 comments

When trying to run the archetype

mvn archetype:generate -DarchetypeGroupId=io.confluent.maven -DarchetypeArtifactId=kafka-connect-quickstart -DarchetypeVersion=0.10.0.0 -Dpackage=io.confluent.examples.kafka.connect.twitter -DgroupId=io.confluent.examples -DartifactId=kafka-connect-twitter -DpackageName=io.confluent.examples.kafka.connect.twitter -Dversion=1.0-SNAPSHOT

(in an empty directory) to generate a skeleton I get the following errors -

[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.115 s [INFO] Finished at: 2019-04-05T14:46:33+13:00 [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\Dev\sandpit\connect-quickstart). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException

ryancrawcour avatar Apr 05 '19 01:04 ryancrawcour

there is no POM in this directory

In theory, you would only get this error if the archetype:generate goal did not execute, and just mvn was interpreted by the terminal


In any case, I'm not able to reproduce, but I suggest starting simpler

mvn archetype:generate -DarchetypeGroupId=io.confluent.maven -DarchetypeArtifactId=kafka-connect-quickstart

However, that command itself does not follow what is written in the README

OneCricketeer avatar Apr 18 '19 20:04 OneCricketeer