Maven Install on Mac OS X

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

    OS X prior to Mavericks (10.9) actually comes with Maven 3 built in.

    If you're on OS X Lion, you won't have java installed by default. Run java by itself and it'll prompt you to install it.

    Assuming qualifications are met, run mvn -version and see some output like this:

    Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
    Maven home: /usr/share/maven
    Java version: 1.6.0_29, vendor: Apple Inc.
    Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    Default locale: en_US, platform encoding: MacRoman
    OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"
    

提交回复
热议问题