首页 > 代码库 > mac+eclipse+svn+maven经验总结(转)

mac+eclipse+svn+maven经验总结(转)

1、Eclipse for Mac:http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-macosx-cocoa-x86_64.tar.gz

2、Jdk for Mac:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u45-oth-JPR

3、Mysql for Mac:http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.21-osx10.9-x86_64.dmg

4、Mysql workbench for Mac:http://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-6.2.3-osx-i686.dmg

5、MacPorts:https://distfiles.macports.org/MacPorts/MacPorts-2.3.1-10.9-Mavericks.pkg

6、Xcode Command Line Tools:http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_10.9_for_xcode__xcode_6/command_line_tools_for_os_x_10.9_for_xcode_6.dmg

经验一:Eclipse安装Plugin,如果来源是本地zip包,则请把网络断开,不然很可能一直卡住而不安装

经验二:Eclipse下使用Subclipse,会报JavaHL错误,此时需要安装JavaHL,方法:

              1)安装MacPorts 和 Command Line Tools

              2)打开命令窗口,sudo port install subversion-javahlbindings +no_bdb +universal

              3)如果报错,继续执行:sudo port clean libmagic subversion-javahlbindings

经验三:设置环境变量

M3_HOME=/Users/Anny/Documents/Java/apache-maven-3.1.0PATH=$PATH:$M3_HOME/binexport M3_HOMEexport PATH### Your previous /Users/Anny/.bash_profile file was backed up as /Users/Anny/.bash_profile.macports-saved_2014-10-06_at_14:47:16### MacPorts Installer addition on 2014-10-06_at_14:47:16: adding an appropriate PATH variable for use with MacPorts.export PATH="/opt/local/bin:/opt/local/sbin:$PATH"# Finished adapting your PATH environment variable for use with MacPorts.

 

转自:http://blog.csdn.net/abigfrog/article/details/39830273

mac+eclipse+svn+maven经验总结(转)