Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-4352 New Liferay Upgrade Tool
  3. IDE-4195

Error importing liferay workspace when eclipse already has a liferay workspace

    Details

    • Type: Sub-Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Upgrade Planner
    • Labels:
      None

      Description

      Steps:

      1.create a gradle liferay workspace(no matter 70 and 71), use 71 during test
      2.open code upgradle tools
      3.importĀ  another 71 gralide liferay workspace
      4.click import button
      5.find error log
      Message:More than one Liferay workspace build in current Eclipse workspace.
      org.eclipse.core.runtime.CoreException: More than one Liferay workspace build in current Eclipse workspace.
      at com.liferay.ide.project.core.util.LiferayWorkspaceUtil.hasWorkspace(LiferayWorkspaceUtil.java:419)
      at com.liferay.ide.project.core.util.ProjectUtil.isWorkspaceWars(ProjectUtil.java:1422)
      at com.liferay.ide.gradle.core.GradleProjectCreatedListener._configureIfLiferayProject(GradleProjectCreatedListener.java:74)
      at com.liferay.ide.gradle.core.GradleProjectCreatedListener.onEvent(GradleProjectCreatedListener.java:53)
      at org.eclipse.buildship.core.event.internal.DefaultListenerRegistry.dispatch(DefaultListenerRegistry.java:53)
      at org.eclipse.buildship.core.configuration.internal.DefaultGradleProjectNature.configure(DefaultGradleProjectNature.java:46)
      at org.eclipse.core.internal.resources.NatureManager$1.run(NatureManager.java:147)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.resources.NatureManager.configureNature(NatureManager.java:163)
      at org.eclipse.core.internal.resources.NatureManager.configureNatures(NatureManager.java:209)
      at org.eclipse.core.internal.resources.Project.basicSetDescription(Project.java:102)
      at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1268)
      at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1295)
      at org.eclipse.buildship.core.workspace.internal.DefaultWorkspaceOperations.addNature(DefaultWorkspaceOperations.java:225)
      at org.eclipse.buildship.core.workspace.internal.ImportRootProjectOperation.importRootProject(ImportRootProjectOperation.java:100)
      at org.eclipse.buildship.core.workspace.internal.ImportRootProjectOperation.access$300(ImportRootProjectOperation.java:38)
      at org.eclipse.buildship.core.workspace.internal.ImportRootProjectOperation$1.run(ImportRootProjectOperation.java:68)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2262)
      at org.eclipse.buildship.core.workspace.internal.ImportRootProjectOperation.runInWorkspace(ImportRootProjectOperation.java:57)
      at org.eclipse.buildship.core.workspace.internal.ImportRootProjectOperation.run(ImportRootProjectOperation.java:50)
      at org.eclipse.buildship.core.workspace.internal.SynchronizeGradleBuildsOperation.run(SynchronizeGradleBuildsOperation.java:48)
      at org.eclipse.buildship.core.workspace.internal.DefaultGradleBuild.synchronize(DefaultGradleBuild.java:51)
      at org.eclipse.buildship.core.workspace.SynchronizationJob.runInToolingApi(SynchronizationJob.java:70)
      at org.eclipse.buildship.core.workspace.SynchronizationJob.runInToolingApi(SynchronizationJob.java:32)
      at org.eclipse.buildship.core.operation.ToolingApiJob$1.runInToolingApi(ToolingApiJob.java:53)
      at org.eclipse.buildship.core.operation.internal.DefaultToolingApiOperationManager$WorkspaceRunnableAdapter.run(DefaultToolingApiOperationManager.java:60)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
      at org.eclipse.buildship.core.operation.internal.DefaultToolingApiOperationManager.run(DefaultToolingApiOperationManager.java:41)
      at org.eclipse.buildship.core.operation.ToolingApiJob.run(ToolingApiJob.java:64)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

        Attachments

          Activity

            People

            • Assignee:
              lr_ide LR IDE
              Reporter:
              rui.wang Rui Wang
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 16 weeks, 5 days ago

                Packages

                Version Package