Maven Install on Mac OS X

后端 未结 24 2227
野性不改
野性不改 2020-11-27 08:46

I\'m trying to install maven through the terminal by following these instructions.

So far I got this

export M2_HOME=/user/apple/apache-maven-3.0.3
ex         


        
24条回答
  •  青春惊慌失措
    2020-11-27 09:37

    If you have tried brew install maven and were greeted with missing gcc compiler and some other dependencies, an easier approach is to install sdkman and then run

    sdk install maven

    (or refer to the latest documentation for the right command)

    sdkman is probably over-qualified for the job, but if you deal with multiple versions of SDKs, it's a pretty nice tool to have in general.

    Credits to Ammar for the excellent tip

提交回复
热议问题