Maven with Surefire (TestNG) is slow after update to MacOS Sierra

后端 未结 1 1605
轮回少年
轮回少年 2021-02-02 02:52

Before the update my MacBook Pro to MacOs Sierra, the command:

mvn clean install -U

took about 40 sec to run, with several hundreds of tests in

1条回答
  •  梦谈多话
    2021-02-02 03:29

    I've had this exact problem (and spent the last 6 hours trying to solve it). My problem was that my HostName wasn't set.

    Check that:

    sudo scutil --get LocalHostName
    

    Matches:

    sudo scutil --get HostName
    

    And if they don't, use:

    sudo scutil --set HostName [YOUR_HOST_NAME]
    

    To fix it.

    0 讨论(0)
提交回复
热议问题