Maven error No POM in this project when executing archetype: generate

I tried my hands in Akka Pi java tutorials

I am trying to create a maven project as indicated in the tutorial

but whenever I enter the command to create the maven project, I get an error. Following are the commands and Error.

C:\Program Files\akka-2.0.2>mvn archetype:generate \ C:\Program Files\akka-2.0.2>mvn archetype:generate \ [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.206s [INFO] Finished at: Wed Sep 26 02:50:38 BST 2012 [INFO] Final Memory: 11M/245M [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Program Files\akka-2.0.2). Please verify you invoked Mave n from the correct directory. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject Exception 

it looks like this: maven requests a POM file, but the statutes do not indicate that I should create a POM before creating a project. I'm actually too new, so forgive me. I use version maven: 3.0.4 and version akka 2.0.2 but the tutorial uses version akka 2.0.1, but I don’t think this is a problem, any suggestion please.

Thank you

+6
source share
2 answers

delete \ , then it should start asking for more information.

I don't have windows here, but on linux it shows the same behavior with

 mvn archetype:generate / 

Hth r

+6
source

When some tutorials describe the mvn command to be executed, which is covered in two lines or more, they can add an additional backslash in a new line (instructions) to indicate that the same command continues on the next line.

This backslash must be removed BEFORE the command is executed. For example, a command to create a web application in Jersey might look like this:

 mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes \ -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.2 

but you should run as below without a backslash:

 mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.2 

If you DO NOT remove this extra backslash, you may get the error described above.

+4
source

Source: https://habr.com/ru/post/926264/


All Articles