创建第一个Portlet插件项目时出错

创建第一个Portlet插件项目时出错

本文介绍了Liferay-创建第一个Portlet插件项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了教程在此处设置Liferay +服务器+ SDK,但是在创建Portlet时出现错误.它告诉我已创建了portlet,但仍然出现错误,并且未在Eclipse的包资源管理器中显示.

I followed the tutorial here to setup Liferay + server + SDK, but I got an error while creating my portlet. It tells me that the portlet gets created, but I still get an error and it doesn't show in my package explorer in Eclipse.

我正在使用Eclipse在Mac上工作.

I'm working on a Mac with Eclipse.

这里是错误:

org.eclipse.core.runtime.CoreException: Source '/Users/danielstorch/Documents/Develop/workspace/.metadata/.plugins/com.liferay.ide.sdk.core/create/1431263175117' does not exist
    at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:182)
    at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
    at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:109)
    at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
    at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:370)
    at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:334)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.io.FileNotFoundException: Source '/Users/danielstorch/Documents/Develop/workspace/.metadata/.plugins/com.liferay.ide.sdk.core/create/1431263175117' does not exist
    at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1298)
    at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1191)
    at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1160)
    at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:176)
    ... 6 more

这是在创建带有消息的portlet之后的屏幕截图:

This is a screenshot after creating the portlet with the message:

这是一个有相同问题的stackoverflow 问题,但是我不了解解决方案,也无法对此发表评论.

Here is a stackoverflow question with the same problem, But I don't understand the solution and I can't comment on it.

推荐答案

所引用链接中的注释说,他要创建portlet的文件夹存在权限问题(可能是只读).因此,他将其更改为777(读,写和执行).

The comment in the referred link says, he had permissions issue (probably he had read-only) for the folder where he wanted to create portlet. So, he changed it to 777 (read, write, and execute).

实际上,不是构建器无法创建新的插件,而是操作系统不允许将内容写在文件系统上.

Actually, its not the builder which is failing in creating new plugin, it is the OS that is not allowing the contents to be written on file system.

您可以通过以下链接更改特定文件夹的权限:
如何在特定文件夹上设置777权限?

You can change permission of particular folder referring following link:
How to set 777 permission on a particular folder?

但是,如果您对权限系统进一步感兴趣,请访问:
http://www.maketecheasier.com/file-permissions -what-does-chmod-777-means/

However, if you are further interested in permission system, go to:
http://www.maketecheasier.com/file-permissions-what-does-chmod-777-means/

这篇关于Liferay-创建第一个Portlet插件项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 12:38