[ https://issues.apache.org/jira/browse/MINSTALL-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965860#comment-17965860 ]
Olivier Lamy commented on MINSTALL-10: -------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-install-plugin#208|https://github.com/apache/maven-install-plugin/issues/208]. > Build ERROR and build FAILURE occurs > ------------------------------------ > > Key: MINSTALL-10 > URL: https://issues.apache.org/jira/browse/MINSTALL-10 > Project: Maven Install Plugin (Moved to GitHub Issues) > Issue Type: Bug > Affects Versions: 2.0 > Environment: Intel Pentium 4, 512 RAM, Windows 2000, Apache 2.0, > Reporter: Hariharan Jagadeesan > Priority: Major > Attachments: attachment.txt, screenshot-1.jpg > > > when i try to do "mvn install it says Build ERROR. > This was the error i got. > C:\Program Files\Apache Group\maven-2.0.2\bin>mvn install > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Building Maven Default Project > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] > ------------------------------------------------------------------------- > --- > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Cannot execute mojo: resources. It requires a project with an existing > po > m.xml, but the build is not using one. > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Total time: 2 seconds > [INFO] Finished at: Thu Jan 19 19:15:36 IST 2006 > [INFO] Final Memory: 2M/4M > [INFO] > ------------------------------------------------------------------------- > --- > this asks me to run Maven with the -e switch. But when i try that it sats > Build FAILURE. > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------- > --- > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] You must specify at least one goal. Try 'install' > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Trace > org.apache.maven.BuildFailureException: You must specify at least one goal. > Try > 'install' > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > fecycleExecutor.java:131) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Total time: < 1 second > [INFO] Finished at: Thu Jan 19 17:55:05 IST 2006 > [INFO] Final Memory: 1M/2M > [INFO] > ------------------------------------------------------------------------- > --- -- This message was sent by Atlassian Jira (v8.20.10#820010)