[ https://issues.apache.org/jira/browse/MNGSITE-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold resolved MNGSITE-384. ------------------------------------------- Assignee: Elliotte Rusty Harold Resolution: Cannot Reproduce > 30 min guide first command doesn't work in commandline windows > -------------------------------------------------------------- > > Key: MNGSITE-384 > URL: https://issues.apache.org/jira/browse/MNGSITE-384 > Project: Maven Project Web Site > Issue Type: Bug > Environment: windows command line > Reporter: Roman Korver > Assignee: Elliotte Rusty Harold > Priority: Trivial > > I tried to walk through the 30 min guide: > [https://maven.apache.org/guides/getting-started/index.html] > And stumbled on an issue after entering the first ":generate" command > # mvn -B archetype:generate \ > # -DarchetypeGroupId=org.apache.maven.archetypes \ > # -DgroupId=com.mycompany.app \ > # -DartifactId=my-app > I entered it (without the numbers of course), in the windows command line. > C:\Users\rkorver\Documents\GitHub\maven-practice>mvn -B archetype:generate \ > -DarchetypeGroupID=org.apache.maven.archetypes \ -DgroupID=com.mycompany.app > \ -DartifactId=my-app > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 0.123 s > [INFO] Finished at: 2019-10-28T16:30:18+01:00 > [INFO] > ------------------------------------------------------------------------ > [ERROR] The goal you specified requires a project to execute but there is no > POM in this directory (C:\Users\rkorver\Documents\GitHub\maven-practice). > 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 > (this ^ link is not helpful in this case) > > * This command, in the 5 min guide works fine however! > mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app > -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 > -DinteractiveMode=false > > A hint I found in one of my tries: > [WARNING] Property groupId is missing. Add -DgroupId=someValue > {color:#FF0000}[WARNING] Property package is missing. Add > -Dpackage=someValue{color} > {color:#172b4d}could that last one be the real issue?{color} > {color:#172b4d}*As a* beginner user of Maven, {color} > *Want* the beginner guide fixed > *So* other beginner Maven users aren't unnecessarily frustrated. > > -- This message was sent by Atlassian Jira (v8.3.4#803005)