Spring工具套件插件冲突不允许导入maven项目

时间:2014-09-25 05:23:39

标签: maven-plugin spring-tool-suite spring-io

我一直在使用Spring Tool Suite(版本:3.5.0.RELEASE Build Id:201404011851)安装了很长一段时间,并且里面有许多不同的工作空间。我不知道什么时候或哪个更新或什么导致了问题,但是当我尝试将新的maven项目导入我最近创建的新工作空间时,我发现了它。我试图导入同一项目的另一个副本,该副本在我以前的工作空间中工作正常。以前的所有工作空间都适用于此STS安装,只是我无法创建任何新的工作空间。以下是我尝试导入时出现的错误。

An internal error occurred during:"Importing maven project"

    An internal error occurred during: "Importing Maven projects".
loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/apache/maven/project/MavenProject"

这显然导致任何更新或构建项目失败的尝试。

Maven编译器插件的版本是2.3.2。当我尝试更新所有插件时,它会在插件之间显示冲突,并提供以下详细信息。

    Cannot complete the install because of a conflicting dependency.
  Software being installed: Eclipse Platform 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7 (org.eclipse.platform.feature.group 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7)
  Software being installed: Spring Tool Suite 3.6.1.201408250826-RELEASE-e38 (org.springsource.sts.ide 3.6.1.201408250826-RELEASE-e38)
  Only one of the following can be installed at once: 
    Views 3.6.100.v20120521-2329 (org.eclipse.ui.views 3.6.100.v20120521-2329)
    Views 3.6.100.v20120705-114010 (org.eclipse.ui.views 3.6.100.v20120705-114010)
    Views 3.6.100.v20120521-2332 (org.eclipse.ui.views 3.6.100.v20120521-2332)
  Cannot satisfy dependency:
    From: Eclipse Platform 3.8.0.v20120607-071945-9gF7jI7nG5qByXMVdkhRMWBQlF4PnDCLybDCPQ (org.eclipse.platform.feature.group 3.8.0.v20120607-071945-9gF7jI7nG5qByXMVdkhRMWBQlF4PnDCLybDCPQ)
    To: org.eclipse.ui.views [3.6.100.v20120521-2332]
  Cannot satisfy dependency:
    From: Eclipse Platform 3.8.1.v20120815-074604-9gF7jI7wG5qDyZMWGg8NPvDbfWFWlIJU-kYaOQ (org.eclipse.platform.feature.group 3.8.1.v20120815-074604-9gF7jI7wG5qDyZMWGg8NPvDbfWFWlIJU-kYaOQ)
    To: org.eclipse.ui.views [3.6.100.v20120521-2332]
  Cannot satisfy dependency:
    From: Eclipse Platform 3.8.1.v20130118-180812-9jF7oIBFG8eU2pim-VbIlTuQjY0RWWK3x-bv4I (org.eclipse.platform.feature.group 3.8.1.v20130118-180812-9jF7oIBFG8eU2pim-VbIlTuQjY0RWWK3x-bv4I)
    To: org.eclipse.ui.views [3.6.100.v20120521-2332]
  Cannot satisfy dependency:
    From: Eclipse Platform 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7 (org.eclipse.platform.feature.group 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7)
    To: org.eclipse.ui.views [3.6.100.v20120705-114010]
  Cannot satisfy dependency:
    From: Spring Tool Suite 3.6.1.201408250826-RELEASE-e38 (org.springsource.sts.ide 3.6.1.201408250826-RELEASE-e38)
    To: org.springsource.sts.package.feature.group [3.6.1.201408250826-RELEASE-e38]
  Cannot satisfy dependency:
    From: Spring Tool Suite Package 3.6.1.201408250826-RELEASE-e38 (org.springsource.sts.package.feature.group 3.6.1.201408250826-RELEASE-e38)
    To: org.eclipse.platform.feature.group [3.8.0,4.0.0)

由于这些冲突,我完全陷入困境。由于我在这个安装中有很多配置,我想解决这个中的冲突,而不是切换到全新安装。

0 个答案:

没有答案