Liferay 6.1.2 第一次新建工程的时候报错。
第一次创建liferay项目失败:
1 创建liferay项目的时候,控制台报java.util.zip.ZipException: error in opening zip file的错误 ,十分诡异。
方法是:删除liferay-plugins-sdk-6.1.1-20130816114619181\liferay-plugins-sdk-6.1.1\.ivy 下的ivy-2.3.0.jar文件。
然后再创建项目, 项目会重新下载依赖,.ivy下会多一个cache文件。
2 接着继续报错,错误变成eclipse工作空间下的log日志显示:
!ENTRY com.liferay.ide.project.core 4 0 2014-01-11 17:32:46.948!MESSAGE Error creating Liferay plugin project.!STACK 1org.eclipse.core.runtime.CoreException: One or more constraints have not been satisfied.at com.liferay.ide.project.core.util.ProjectUtil.importProject(ProjectUtil.java:1214)at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:177)at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101)at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)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:544)at com.liferay.ide.project.core.util.ProjectUtil.importProject(ProjectUtil.java:1210)... 7 more