`
luckybat
  • 浏览: 31966 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

解决myeclipse和hibernate tools的冲突

阅读更多

Here's how to get hibernate-tools 3.1beta4 to work, disabling any MyEclipse Hibernate functionality (NOTE: This is only meant as a workaround if you absolutely NEED hibernate-tools, following the steps below might seriously screw your Eclipse/MyEclipse installation. So please only proceed if you really know what you're doing!)

OK, on to the gory details...
以下翻译开始


  1. Locate the MyEclipse install location, it should contain two folders "plugins" and "features". Let's call this $MYECLIPSE.
    进入MyEclipse目录,然后将找到plugins和feature两个目录,下面我们将MyEclipse的目录叫做$MYECLIPSE
  2. Create two folders named "disabled_plugins" and "disabled_features" in $MYECLIPSE.
    在$MYECLIPSE建立两个空白目录disabled_plugins和disabled_feature
  3. Move the MyEclipse Hibernate feature (folder: $MYECLIPSE/features/com.genuitec.myeclipse.hibernate_4.0.100 ) to the "disabled_features" folder
    把“$MYECLIPSE/features/com.genuitec.myeclipse.hibernate_4.0.100”目录移动到disabled_features中
  4. Move the following folders from $MYECLIPSE/plugins to "disabled_plugins":

    1. com.genuitec.eclipse.hibernate_4.0.100
    2. com.genuitec.myeclipse.hibernate_4.0.100
    3. org.hibernate.eclipse.console_4.0.100
    4. org.hibernate.eclipse.mapper_4.0.100
    5. org.hibernate.eclipse_4.0.100

    把$MYECLIPSE/plugins 中以上的五个目录或文件拷贝到 disabled_plugins目录中
  5. Last step: remove the dependency from the main MyEclipse feature. Open the file $MYECLIPSE/features/com.genuitec.myeclipse.enterprise.workbench_4.0.100/feature.xml.
    Locate the following snippet:
    最后一步,修改“$MYECLIPSE/features/com.genuitec.myeclipse.enterprise.workbench_4.0.100/feature.xml”这个文件,找到下列代码
    Code:
    <includes
             id="com.genuitec.myeclipse.hibernate"
             version="4.0.100"
             name="MyEclipse Hibernate Support"/>

    ... and comment it out, like:
    注解它,修改后的代码如下
    Code:
    <!--
    <includes
             id="com.genuitec.myeclipse.hibernate"
             version="4.0.100"
             name="MyEclipse Hibernate Support"/>
    -->

    Now restart Eclipse (preferably using "-clean" switch), install hibernate-tools 3.1 (if you have not already done so) and enjoy!
    重新启动MyEcliplse然后按照正常安装插件的方式安装 Hibernate tools 3.1
分享到:
评论
2 楼 lxs647 2009-05-05  
的确不行、、、、、、
我也试过了
1 楼 sundysea 2008-12-26  
这个方法不行,我试验过了

相关推荐

Global site tag (gtag.js) - Google Analytics