On Fri, Oct 22, 2010 at 08:15, wasi_shez <[email protected]> wrote: > > I am using XP Windows >>> > > > 1)Install Latest JRE > 2)Download Maven 3.0 > 3)Set JAVA_Home for JRE > 4)Set Path for Maven 3.0 upto BIN > > Run Command to ensure the installation > >>> mvn --v > > Apache Maven 3.0 (r1004208; 2010-10-04 16:50:56+0500) > Java version: 1.6.0_22 > Java home: C:\Program Files\Java\jdk1.6.0_22\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" > > Will Anyone help me How to Proceed further as My Java Project Path is :- > > C:\Workspace_Eclipse\Sample\src > > > I am running following Command after using this Link: > mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app > -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false > > and Link is : > > http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html > > > It doesn't work for me ..... > > > Errors Come as :::::::: > > > > > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 0.093s > [INFO] Finished at: Fri Oct 22 10:34:38 UZT 2010 > [INFO] Final Memory: 1M/15M > [INFO] > ------------------------------------------------------------------------ > [ERROR] The goal you specified requires a project to execute but there is no > POM > in this directory (C:\Workspace_Eclipse\Sample\src). 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 > 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 > > > > Please Suggest.................
I think you should cd into the directory my-app, which should exist under C:\Workspace_Eclipse\Sample\src, if you run the archetype:generate in that directory. archetype:generate creates the whole directory structure, the top directory is named after the artifactId you provided. So you shouldn't run this command in your "source"-directory, but in your workspace-directory. Regards, Manuel --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
