如何在Liferay 7工作区中导入主题? [英] how to import a theme in liferay 7 workspace?

查看:216
本文介绍了如何在Liferay 7工作区中导入主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在liferay 7工作区中导入主题?

how to import a theme in liferay 7 workspace?

我在工作区/主题下添加了主题,但我尝试对其进行部署,但没有成功.我的主题的构建类型是Ant.

I added the theme under workspace/themes and I tried to deploy it but did not work. The build type of my Theme is Ant.

下图显示了详细信息:

我将主题放置在 * sdk \ com.liferay.portal.plugins.sdk-1.0.11 \ themes * 下,并尝试像Liferay 6一样对其进行测试.导入- >来自插件SDK的Liferay Projects ,然后在添加SDK时出现错误:

I put the Theme under *sdk\com.liferay.portal.plugins.sdk-1.0.11\themes* and I tried to test it as in Liferay 6. Import-> Liferay Projects from plugins SDK then when adding the SDK I got an error :

app.server.dir无效.请重新配置插件SDK设置: app.server.dir = Liferay门户的路径/tomcat-8.0.32

app.server.dir is invalid. Please reconfigure Plugins SDK setting: app.server.dir=path to liferay portal/tomcat-8.0.32

然后,我尝试从sdk liferay插件工作区迁移主题. 我将sdk放在以下位置:liferay-workspace\plugins-sdk\sdk\com.liferay.portal.plugins.sdk-1.0.11

Then I tried to migrate the theme from the plugins sdk liferay workspace. I puted the sdk under: liferay-workspace\plugins-sdk\sdk\com.liferay.portal.plugins.sdk-1.0.11

然后我尝试了这个命令C:\Users\User1\workspace2\liferay-workspace>blade convert --themebuilder name_theme她什么也不返回.

Then I tried this commande C:\Users\User1\workspace2\liferay-workspace>blade convert --themebuilder name_theme she does not return anything.

原始主题的结构:

css目录:

我通过将eclipse.ini文件中的Java jdk从8切换到7来解决了 app.server.dir无效. 的问题:

I fixed the problem app.server.dir is invalid. by switching the java jdk from 8 to 7 in eclipse.ini file:

-vm
D:/Program Files/Java/jdk1.7.79/bin/javaw.exe

当我从插件SDK进行 Import-> Liferay Projects 并放入SDK路径时,出现此错误:

When I did Import-> Liferay Projects from plugins SDK and I puted the SDK path, I got this error:

无法导入任何可用项目.

No available projects can be imported.

我需要升级吗?

对不起,我检查了主题的兼容性.该主题已经与Liferay 7兼容,无需升级.

Sorry, I checked the compatibility of Theme. The theme is already compatible with Liferay 7 and no need to upgrade it.

<look-and-feel>
    <compatibility>
        <version>7.0.2+</version>
    </compatibility>
    ...
</look-and-feel>

我正在尝试在 Liferay 7.0.0 GA1 上导入主题.

I am trying to import the Theme on Liferay 7.0.0 GA1.

1-我正在将jdk 1.8用于Eclipse Neon.3版本(4.6.3).

1- I am using jdk 1.8 for eclipse Neon.3 Release (4.6.3).

图片描述:

2-我更新了sdk/build.{username} .properties

2- I updated sdk /build.{ username}.properties

图片描述:

3-我将主题放置在sdk\liferay-plugins-sdk-7.0\themes下,并从插件SDK 进行了 Import-> Liferay Projects,然后将SDK路径放置了D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-7.0.我找不到主题.我做了刷新,但它没有出现.

3- I putted the Theme under sdk\liferay-plugins-sdk-7.0\themes and I did Import-> Liferay Projects from plugins SDK and I putted the SDK path D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-7.0. I do not find the theme. I did Refresh and it does not appear.

图片描述:

我遵循@OlafKock的说明:

I followed @OlafKock 's instructions:

我声明了与7.0.0+的兼容性,当我从插件SDK 导入-> Liferay Projects 时,我无权放置sdk的路径.默认情况下设置为: D:\ FormationJEE \ Liferay \ Liferay7_g1 \ sdk \ liferay-plugins-sdk-‌7.0 .我找不到主题.我做了刷新,但它没有出现.

I declared the compatibility with 7.0.0+ and when I did Import-> Liferay Projects from plugins SDK I did not have the right to put the path of sdk. It is set by default to this: D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-‌​7.0. I do not find the theme. I did Refresh and it does not appear.

现在,我无法再更改sdk的路径.它停留在 D:\ FormationJEE \ Liferay \ Liferay7_g1 \ sdk \ liferay-plugins-sdk-‌7.0 中.我无法在Liferay 7.0 GA5上测试主题.

Now, I can not change the path of sdk anymore. It is stuck at D:\FormationJEE\Liferay\Liferay7_g1\sdk\liferay-plugins-sdk-‌​‌​7.0. I can not test the theme on Liferay 7.0 GA5.

我通过创建另一个工作空间解决了该问题,但仍然无法导入主题项目.

I fixed that by creating another workspace but still can not import the theme project.

4-您好,我尝试使用以下命令将主题从sdk插件迁移到工作区:

4- Hello, I tried to migrate the theme from the plugins sdk to workspace using this command:

刀片转换--themebuilder [THEME_PROJECT_NAME]

blade convert --themebuilder [THEME_PROJECT_NAME]

我键入了命令,但没有任何反应. 我点击了以下链接:

I typed the command and nothing happens. I followed this link: MIGRATING A THEME FROM THE PLUGINS SDK TO WORKSPACE

推荐答案

不确定是否有帮助,但是:尝试使用7.0 GA5.它可能已解决您遇到的问题.另外,它可能会帮助解决您声明的版本与声明的兼容性不匹配

Not sure if this helps, but: Try 7.0 GA5. It might have fixed an issue that you're running into. Also, it might help the mismatch of your stated version and the declared compatibility

<look-and-feel>
    <compatibility>
        <version>7.0.2+</version>
    </compatibility>
    ...
</look-and-feel>

7.0.2+指的是"7.0 GA3及更高版本",但您声明您正在使用GA1. 从那时起,许多问题已得到解决.请快速尝试声明与7.0.0+的兼容性,但是,请务必使用最新版本作为长期修复.

7.0.2+ refers to "7.0 GA3 and later", but you state that you're using GA1. Many issues have been fixed since then. Do a quick try declaring compatibility with 7.0.0+, but, by all means, use the most current version as a long term fix.

这篇关于如何在Liferay 7工作区中导入主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆