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

Calling mvn --builder=concurrent verify Fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 4.0.0-beta-4
    • 4.0.0
    • Command Line, Core
    • None

    Description

      If I try to call Maven 4.0.0 via:

      mvn --builder=concurrent verify                                                                                                                                                    
      

      It fails with the following error:

      
      [INFO] Scanning for projects...
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [INFO] Total time:  0.249 s
      [INFO] Finished at: 2024-09-07T13:43:00+02:00
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [ERROR] Cannot invoke "String.startsWith(String)" because "tmpResolvedPhase" is null
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
      [ERROR] Re-run Maven using the '-X' switch to enable verbose output
      

      If a builder does not exist it should report like this:

      $> mvn --builder=xxx verify                                                                                                                                                           
      [INFO] Scanning for projects...
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [INFO] Total time:  0.124 s
      [INFO] Finished at: 2024-09-07T13:44:44+02:00
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [ERROR] The builder requested using id = xxx cannot be found -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
      [ERROR] Re-run Maven using the '-X' switch to enable verbose output
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/BuilderNotFoundException
      

      Seemed to be related to https://issues.apache.org/jira/browse/MNG-8225

      Attachments

        Issue Links

          Activity

            People

              crazyhzm Zhongming Hua
              khmarbaise Karl Heinz Marbaise
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: