Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6268

When a reactor build fails Maven should include -f (if used) in command line suggestion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 3.5.0
    • None
    • None
    • None

    Description

      When a reactor build fails, Maven prints out a helpful suggestion on how to resume.

      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :example
      

      Unfortunately, when running mvn with -f, this suggestion is wrong; Maven will either pick the wrong pom.xml or simply won’t find any; in either case, the pom.xml specified with -f is crucial information that was left out of the suggestion.

      FYI, this is related to MNG-6028, but covers a different bit of info that IMHO should be part of the suggestion. Hence this separate issue.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              sewe Andreas Sewe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: