Karl Heinz Marbaise created MNG-8247:
----------------------------------------

             Summary: Calling mvn --builder=concurrent verify Fails
                 Key: MNG-8247
                 URL: https://issues.apache.org/jira/browse/MNG-8247
             Project: Maven
          Issue Type: Bug
          Components: Command Line, Core
    Affects Versions: 4.0.0-beta-4
            Reporter: Karl Heinz Marbaise
             Fix For: 4.0.0


If I try to call Maven 4.0.0 via:
{code}
mvn --builder=concurrent verify                                                 
                                                                                
                   
{code}

It fails with the following error:
{code}

[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
{code}
If a builder does not exist it should report like this:

{code}
$> 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
{code}

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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to