掲示板

Error creating Liferay plugin project

9年前 に Robert Holt によって更新されました。

Error creating Liferay plugin project

New Member 投稿: 4 参加年月日: 14/05/06 最新の投稿
Hello,

I have been following the developer's guide found here:
https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/developing-apps-with-liferay-ide-liferay-portal-6-2-dev-guide-02-en

When I go to create a new liferay plugin project I get the following error:
eclipse.buildId=4.3.2.M20140221-1700
java.version=1.8.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA
Framework arguments:  -product org.eclipse.epp.package.standard.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.standard.product

Error
Wed May 14 14:47:04 EDT 2014
Error creating Liferay plugin project.

org.eclipse.core.runtime.CoreException: One or more constraints have not been satisfied.
	at com.liferay.ide.project.core.util.ProjectUtil.importProject(ProjectUtil.java:1140)
	at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:189)
	at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
	at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:110)
	at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
	at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:362)
	at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:326)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: One or more constraints have not been satisfied.
	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:363)
	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
	at com.liferay.ide.project.core.util.ProjectUtil.createNewSDKProject(ProjectUtil.java:472)
	at com.liferay.ide.project.core.util.ProjectUtil.importProject(ProjectUtil.java:1136)
	... 7 more



Thanks in advance for any assistance you can give me.
thumbnail
9年前 に Mathieu Hicauber によって更新されました。

RE: Error creating Liferay plugin project

New Member 投稿: 17 参加年月日: 09/11/16 最新の投稿
Hi,

Same issue here - did you solve it ?

Thanx

Mathieu.
9年前 に Robert Holt によって更新されました。

RE: Error creating Liferay plugin project

New Member 投稿: 4 参加年月日: 14/05/06 最新の投稿
Glad to hear I'm not the only one. No, I have been trying things for days now but I cannot figure out what is wrong.
thumbnail
9年前 に Gregory Amerson によって更新されました。

RE: Error creating Liferay plugin project

Liferay Legend 投稿: 1123 参加年月日: 10/02/16 最新の投稿
Hey guys,

This is a known issue: https://issues.liferay.com/browse/IDE-1537
9年前 に Robert Holt によって更新されました。

RE: Error creating Liferay plugin project

New Member 投稿: 4 参加年月日: 14/05/06 最新の投稿
The title of the issue is "Unable to create projects when jre8 is default jre", but I am getting the exact same error when using jre7.
9年前 に Robert Holt によって更新されました。

RE: Error creating Liferay plugin project

New Member 投稿: 4 参加年月日: 14/05/06 最新の投稿
I have solved the problem. By default my eclipse compiler compliance level was set to 1.4. Changing it to 1.7 did the job.

Thanks again,
Rob
thumbnail
9年前 に Mathieu Hicauber によって更新されました。

RE: Error creating Liferay plugin project

New Member 投稿: 17 参加年月日: 09/11/16 最新の投稿
Hi

Default compliance level is set to 1.6 for me, but still the same issue.
thumbnail
9年前 に Gregory Amerson によって更新されました。

RE: Error creating Liferay plugin project

Liferay Legend 投稿: 1123 参加年月日: 10/02/16 最新の投稿
Hey guys, for those of you still have problems could you try the most recent nightly build? See if it helps any:

http://files.liferay.org.es/staged/public-files/liferay-ide/unstable/build/releng/com.liferay.ide-repository/target/updatesite/
thumbnail
9年前 に Mathieu Hicauber によって更新されました。

RE: Error creating Liferay plugin project

New Member 投稿: 17 参加年月日: 09/11/16 最新の投稿
Thanks, we'll give it a go next week.
thumbnail
9年前 に Gregory Amerson によって更新されました。

RE: Error creating Liferay plugin project

Liferay Legend 投稿: 1123 参加年月日: 10/02/16 最新の投稿
We pushed another build today that also fixed an issue related to the "One or more constraints have not been satisfied." issue. I hope this fixes things for you.
9年前 に Tania Garcia によって更新されました。

RE: Error creating Liferay plugin project

New Member 投稿: 10 参加年月日: 14/11/29 最新の投稿
Hello.

I have downloaded 1 month ago the project. and it doesn't work
thumbnail
9年前 に Gregory Amerson によって更新されました。

RE: Error creating Liferay plugin project

Liferay Legend 投稿: 1123 参加年月日: 10/02/16 最新の投稿
Tania Garcia:
Hello.

I have downloaded 1 month ago the project. and it doesn't work


Hello Tania,

We would like to help, but you will have to give us some more information to go on. What exact version did you install? what is your portal and sdk version (or are you using maven?) and then want exactly is the error that you encountered?
thumbnail
8年前 に John Voltaire Rosanes Maximo によって更新されました。

RE: Error creating Liferay plugin project

Regular Member 投稿: 106 参加年月日: 15/06/19 最新の投稿
I have the 'One or more constraints have not been satisfied.' issue right now...
I'm using 1.7 jdk version.. all of my liferay tools are 6.2 ga4...
any solutions? currently I'm trying to create a theme,, but couldn't
thumbnail
8年前 に Gregory Amerson によって更新されました。

RE: Error creating Liferay plugin project

Liferay Legend 投稿: 1123 参加年月日: 10/02/16 最新の投稿
John Voltaire Maximo:
I have the 'One or more constraints have not been satisfied.' issue right now...
I'm using 1.7 jdk version.. all of my liferay tools are 6.2 ga4...
any solutions? currently I'm trying to create a theme,, but couldn't



What is your default JRE in eclipse ? Window > Prefs > Java > Installed JRES?
thumbnail
8年前 に John Voltaire Maximo によって更新されました。

RE: Error creating Liferay plugin project

Regular Member 投稿: 106 参加年月日: 15/06/19 最新の投稿
the preselected one was 1.8,,,, I looked into other posts and change my preference to 1.6 instead...
that worked for me,, thanks anyway for answering sir emoticon
6年前 に Rafał Płaszczyk によって更新されました。

RE: Error creating Liferay plugin project

New Member 投稿: 24 参加年月日: 17/07/05 最新の投稿
Robert Holt:
I have solved the problem. By default my eclipse compiler compliance level was set to 1.4. Changing it to 1.7 did the job.

Thanks again,
Rob



This helped, THANKS a lot.