zoukankan      html  css  js  c++  java
  • Eclipse插件安装maven svn ibatis openExplorer PropertiesEditor

    一 背景

      Eclipse的插件安装经常陷于某种错误,不是期待的样子。Web项目最流行的配置方式莫过于Maven项目,而代码使用SVN管理。再使用 tomcat或Resin作为容器。而maven和svn的插件不是很好安装。原因是我们没有搞清楚这些插件是什么,是谁提供的。

      Eclipse最流行的插件为官网Eclipse.org官网提供的,这一点欺骗了很多人。看下图:

    可以看出,svn有两个插件。一个是Subversive,一个是Subclipse。其实都是svn的eclipse插件,区别是一个是eclipse官网提供,一个是svn官网提供。都是官方,我们偏向于Subclipse。其安装地址是:http://subclipse.tigris.org/update_1.6.x,注意,这个是中文的。

      maven插件的安装更加让人疑惑,很多人上网找,有可能就是上图中的第一个。这个也是Eclispe官网提供的,其实我们更加倾向于使用maven官网提供的,地址为:http://m2eclipse.sonatype.org/sites/m2e

      但是为了有checkout as Maven project from SCM选项,必须安装maven的extras插件:http://m2eclipse.sonatype.org/sites/m2e-extras,

    如果安装不上,那就是缺少了zesk包,安装gef插件解决问题。在安装maven插件之前安装,地址为:

    http://download.eclipse.org/tools/gef/update/releases ,eclipse展开pending后,好多选项,只有安装SDK核心包就可以了。

      按上面的配置,就是一个非常标准的eclipse了。这个Eclipse就具备了一些开发的基本功能:

      1.中文svn;

      2.可以直接拷贝maven工程,可以出现 Check out as Maven Project 菜单了。

    二. 推荐一下

      在这里,笔者还想推荐一下Eclipse中最好用的三款插件,我使用了两三年始终不能放弃。

      1.openExplorer。快速定位到某文件到文件系统位置,非常好用。在百度中搜索 OpenExplorer jar csdn 或 插件 openExplorer即可,下载一个    openExplorer.....jar包,直接将jar包拷贝到Eclipse的dropins目录 下,重启Eclipse即可,在右键文件时出现 openExplorer菜单项。

      2.ibator。如果你使用ibatis框架,这个是必备的,能快速生成bean和xml。

    这个插件也有两个地址,直接作为Eclipse插件的方式安装:

    新版:http://ibatis.apache.org/tools/ibator

    旧版:http://ibatis.apache.org/tools/abator

    为了这个找这个插件,我也是找的好辛苦,刚开始总是用旧版,总是生成不了。后来用了新版才能使用。
    标准的一个ibatorConfig.xml如下:

    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE ibatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Apache iBATIS Ibator Configuration 1.0//EN" "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd" >
    <ibatorConfiguration >
      <classPathEntry location="${user.home}/.m2/repository/mysql/mysql-connector-java/5.1.19/mysql-connector-java-5.1.19.jar" />
      <ibatorContext id="context1" >
        <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/exam?useUnicode=true" userId="root" password="root" />
        <javaModelGenerator targetPackage="cc.monggo.domain" targetProject="exam_18" />
        <sqlMapGenerator targetPackage="cc.monggo.domain.sqlmaps" targetProject="exam_18" />
        <daoGenerator targetPackage="cc.monggo.dao"
            implementationPackage="cc.monggo.dao.impl"
            targetProject="exam_18" type="Spring" />
        <table schema="exam" tableName="base_user"
          enableInsert="true"
          enableSelectByPrimaryKey="true"
          enableSelectByExample="false"
          enableUpdateByPrimaryKey="true"
          enableDeleteByPrimaryKey="true"
          enableDeleteByExample="false"
          enableCountByExample="false"
          enableUpdateByExample="false"
          selectByPrimaryKeyQueryId="true"
          selectByExampleQueryId="false"
          modelType="flat"
        >
        </table>
      </ibatorContext>
    </ibatorConfiguration>

      3.PropertiesEditor。资源文件编辑器,方便好用,支持各种字符集。插件安装地址:http://propedit.sourceforge.jp/eclipse/updates/。

     

    笔者的文章全为原创,花去不少精力与时间,在这里笔者乞望诸位能关照一下我的小店:http://wamogu.taobao.com。增加一个浏览量就是对笔者劳动的最大安慰。多谢您不吝鼠标。

  • 相关阅读:
    C#几个经常用到的字符串的截取
    写入Log错误日志
    AES 加密与解密
    支付宝小额免密支付和代扣区别:原来如此
    Sql server --触发器
    yum、ip、等命令无法不全子命令解决
    3、VNC
    6、DHCP
    2、OpenSsh
    VIM的使用
  • 原文地址:https://www.cnblogs.com/biggestfish/p/2922109.html
Copyright © 2011-2022 走看看