Foros de discusión

New Liferay Plugin Project: Could not get SDK from newly created project.

Christian Haupt, modificado hace 10 años.

New Liferay Plugin Project: Could not get SDK from newly created project.

New Member Mensajes: 2 Fecha de incorporación: 12/11/13 Mensajes recientes
Hello!

I get an error when I create a new Liferay plugin project with the following options: "Use Eclipse Workspace as Base For Project Location", "Portlet" and "JSF 2.x". Environment: Eclipse Kepler SR 1, Liferay IDE 2.0 Milestone 2.

The error is:

!ENTRY com.liferay.ide.project.core 4 0 2013-11-12 13:41:04.411
!MESSAGE Error creating Liferay plugin project.
!STACK 1
org.eclipse.core.runtime.CoreException: Could not get SDK from newly created project.
at com.liferay.ide.project.core.PluginsSDKProjectProvider.createNewProject(PluginsSDKProjectProvider.java:237)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:48)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:345)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:307)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 1 com.liferay.ide.portlet.jsf.core 4 0 2013-11-12 13:41:04.411
!MESSAGE Could not get SDK from newly created project.

The problem is that class com.liferay.ide.sdk.core.SDKUtil is not adapted for a project at this location (not at sdk subfolder) and SDKUtil is only used if "JSF 2.x" is selected.

Should I create a JIRA issue? There ist an unresolved JIRA Story (IDE-644) about this.
thumbnail
David H Nebinger, modificado hace 10 años.

RE: New Liferay Plugin Project: Could not get SDK from newly created projec

Liferay Legend Mensajes: 14917 Fecha de incorporación: 2/09/06 Mensajes recientes
Um, no, you should create the plugin in the SDK directory. The "eclipse workspace for base" option should not be used for Liferay projects, you should put them in the SDK directory.
Christian Haupt, modificado hace 10 años.

RE: New Liferay Plugin Project: Could not get SDK from newly created projec

New Member Mensajes: 2 Fecha de incorporación: 12/11/13 Mensajes recientes
Okay, but this would be a workaround. And if I select "Maven (liferay-maven-plugin)" as the build type instead of "Ant (liferay-plugins-sdk)" it automatically creates the project at workspace root (I don't have an option) and I get the same error.
thumbnail
Gregory Amerson, modificado hace 10 años.

RE: New Liferay Plugin Project: Could not get SDK from newly created projec (Respuesta)

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
Hello Christian,

Thanks taking the time to submit the bug report with 2.0m2. I have replicated your error and have created a ticket for it here: https://issues.liferay.com/browse/IDE-1273 You can watch that ticket for resolution status.