Eclipse:如何安装 UML2 工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5318992/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:03:12  来源:igfitidea点击:

Eclipse: How can I install UML2 Tools

eclipseeclipse-pluginuml

提问by Xorty

I'd like to try UML2 Tools for Eclipse, as shown in this tutorial.

我想尝试使用 UML2 Tools for Eclipse,如本教程所示。

I currently have Eclipse 3.6 Helios for Java EE developers.

我目前有面向 Java EE 开发人员的 Eclipse 3.6 Helios。

In my Eclipse Marketplace I switched marketplace catalog to Yoxos Marketplaceand there searched for UML2 Tools SDK(Incubation). When I try to install them, Eclipse wont proceed and complains about some conflicting dependencies. Here's whole trace:

在我的 Eclipse Marketplace 中,我将市场目录切换到Yoxos Marketplace并在那里搜索UML2 Tools SDK(Incubation)。当我尝试安装它们时,Eclipse 不会继续并抱怨一些相互冲突的依赖项。这是整个跟踪:

Cannot complete the install because of a conflicting dependency.
  Software being installed: UML2 Tools SDK (Incubation) 0.9.0.v200906190654 (org.eclipse.uml2tools.sdk.feature.group 0.9.0.v200906190654)
  Software currently installed: Eclipse IDE for Java EE Developers 1.3.2.20110301-1807 (epp.package.jee 1.3.2.20110301-1807)
  Only one of the following can be installed at once: 
    EMF Ecore 2.5.0.v200906151043 (org.eclipse.emf.ecore 2.5.0.v200906151043)
    EMF Ecore 2.6.1.v20100914-1218 (org.eclipse.emf.ecore 2.6.1.v20100914-1218)
    EMF Ecore 2.6.0.v20100614-1136 (org.eclipse.emf.ecore 2.6.0.v20100614-1136)
  Cannot satisfy dependency:
    From: Eclipse IDE for Java EE Developers 1.3.2.20110301-1807 (epp.package.jee 1.3.2.20110301-1807)
    To: org.eclipse.epp.package.jee.feature.feature.group [1.3.2.20110301-1807]
  Cannot satisfy dependency:
    From: Object Constraint Language (OCL) 2.0 Compatibility API 1.1.101.v200901271800 (org.eclipse.emf.ocl 1.1.101.v200901271800)
    To: bundle org.eclipse.ocl.ecore [1.1.0,2.0.0)
  Cannot satisfy dependency:
    From: Java EE IDE Feature 1.3.2.20110301-1807 (org.eclipse.epp.package.jee.feature.feature.group 1.3.2.20110301-1807)
    To: org.eclipse.jst.enterprise_ui.feature.feature.group 0.0.0
  Cannot satisfy dependency:
    From: Eclipse Java EE Developer Tools 3.2.3.v201011031800-7b7GHfIFSK2WBRT6E1mcyFXGPnSh (org.eclipse.jst.enterprise_ui.feature.feature.group 3.2.3.v201011031800-7b7GHfIFSK2WBRT6E1mcyFXGPnSh)
    To: org.eclipse.jst.ws.jaxrs.ui [1.0.301.v201012020511]
  Cannot satisfy dependency:
    From: JAX-RS Tools - UI 1.0.301.v201012020511 (org.eclipse.jst.ws.jaxrs.ui 1.0.301.v201012020511)
    To: bundle org.eclipse.emf.ecore [2.6.0,3.0.0)
  Cannot satisfy dependency:
    From: OCL 2.0 Binding for Ecore 1.3.0.v200905271400 (org.eclipse.ocl.ecore 1.3.0.v200905271400)
    To: bundle org.eclipse.emf.ecore [2.5.0,2.6.0)
  Cannot satisfy dependency:
    From: UML2 Diagramming (Incubation) 0.9.0.v200906190654 (org.eclipse.uml2.diagram.feature.group 0.9.0.v200906190654)
    To: org.eclipse.emf.ocl 0.0.0
  Cannot satisfy dependency:
    From: UML2 Tools SDK (Incubation) 0.9.0.v200906190654 (org.eclipse.uml2tools.sdk.feature.group 0.9.0.v200906190654)
    To: org.eclipse.uml2.diagram.feature.group [0.9.0.v200906190654]

Maybe I don't understand whole concept and am trying something inappropriate, I don't know. Thank you for advices.

也许我不理解整个概念并且正在尝试一些不合适的东西,我不知道。谢谢你的建议。

回答by Zoltán Ujhelyi

UML2 Tools has no release that works with Eclipse 3.6 and newer. You could use Papyrusinstead.

UML2 Tools 没有适用于 Eclipse 3.6 和更新版本的版本。你可以用Papyrus代替。

回答by Afriza N. Arief

If you really need UML2 Tools 0.9.0 to work in Eclipse Helios 3.6, there is a workaroundyou need to do before installing UML2 Tools as explained in this answer.

如果您确实需要 UML2 工具 0.9.0 才能在 Eclipse Helios 3.6 中工作,那么在安装 UML2 工具之前,您需要采取一种解决方法,如本答案中所述