Maven Install on Mac OS X

后端 未结 24 2129
野性不改
野性不改 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:46

    You can use Maven Version Manager through which you can use multiple version of Maven per directory base.

    Installation

    Using Homebrew brew install mvnvm

    Without Homebrew mkdir -p ~/bin && curl -s https://bitbucket.org/mjensen/mvnvm/raw/master/mvn > ~/bin/mvn && chmod 0755 ~/bin/mvn and add ~/bin to path.

    Usage

    Default Version

    To set default maven version set the environment variable DEFAULT_MVN_VERSION to the maven version to be used by default.

    Maven version for the folder

    Create a file named mvnvm.properties in the folder and configure the maven version as follows

    mvn_version=

提交回复
热议问题