jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Install Plugin
  • Maven 2.x Install Plugin
  • MINSTALL-58

Build failure

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Not A Bug
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows xp
  • Number of attachments :
    1

Description

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?

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    New Text Document.txt
    03/Feb/09 2:33 PM
    2 kB
    Poonam Gyanchandani

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Benjamin Bentmann added a comment - 03/Feb/09 2:45 PM

Is their anyone can help me for this?

Please understand that the issue tracker is not the right place for basic usage questions. Have a look at Getting Help. Also, reading Maven in 5 Minutes or other introdutions to Maven can help.

Show
Benjamin Bentmann added a comment - 03/Feb/09 2:45 PM Is their anyone can help me for this? Please understand that the issue tracker is not the right place for basic usage questions. Have a look at Getting Help . Also, reading Maven in 5 Minutes or other introdutions to Maven can help.

People

  • Assignee:
    Benjamin Bentmann
    Reporter:
    Poonam Gyanchandani
Vote (0)
Watch (0)

Dates

  • Created:
    03/Feb/09 2:33 PM
    Updated:
    03/Feb/09 2:45 PM
    Resolved:
    03/Feb/09 2:45 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.