Build failure
-------------
Key: MINSTALL-58
URL: http://jira.codehaus.org/browse/MINSTALL-58
Project: Maven 2.x Install Plugin
Issue Type: Bug
Affects Versions: 2.0
Environment: Windows xp
Reporter: Poonam Gyanchandani
Attachments: New Text Document.txt
Hi,
I have installed the Maven . When I am trying to run mvn package/ mvn
install/mvn clean it is giving me "build failure".
D:\Program Files\Apache Software Foundation\apache-maven-2.0.9>mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [package]
[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: < 1 second
[INFO] Finished at: Tue Feb 03 15:24:56 EST 2009
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
and when I run mvn -e
D:\Program Files\Apache Software Foundation\apache-maven-2.0.9>mvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO]
You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for
ptions
See http://maven.apache.org for more information.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException:
You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for
ptions
See http://maven.apache.org for more information.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
fecycleExecutor.java:134)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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: Tue Feb 03 15:26:24 EST 2009
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------
Is their anyone can help me for this?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira