留言板

Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Alberto Fuentes,修改在10 年前。

Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 6 加入日期: 12-10-18 最近的帖子
Liferay 6.1 GA3 (6.1.2) SDK creating themes.

I have downloaded the files to start with new Liferay 6.1. GA3, and I have found some doubts...

First of all, as far as I know, and following the Liferay docs, as i have to migrate from 6.1 GA2 to 6.1 GA3, all the themes, portlets, etc. created for Liferay 6.1 GA2 should work at Liferay 6.1 GA3.

Following the Liferay 6.1 GA3 documentation, I have not found anything about database changes, so, the database used for GA3 is the same as GA2. Is this correct?

Well, I have tested to deploy my themes... and they have failed. Following http://www.liferay.com/es/community/forums/-/message_boards/message/27672716, I have change liferay-look-and-feel.xml and liferay-plugin-package.properties, and although the deploy process is succeded, the theme is not viewed correctly (I'll try to guess what has changed).

I have tried to download SDK (the file name remains with 6.1.1) and create a new theme, but when I have installed Liferay IDE in Eclipse and the theme is created, I realize that the content from docroot, has only 2 folders, WEB_INF and _diffs. Is this possible? Where are the others folders: css, images, js, templates. Can we trust in this SDK delivery?

Thanks in advance!
thumbnail
Ahmed Hasan,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Expert 帖子: 306 加入日期: 07-4-13 最近的帖子
Hi Alberto,

In one of the recent threads this problem has been solved. please refer to that.

Yours truly,
Ahamed Hasan
Author, Liferay Portlet Cookbook
Alberto Fuentes,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 6 加入日期: 12-10-18 最近的帖子
Thanks Ahamed for your answer, but I'm not sure I understand.

Do you mean SDK will be updated with this issue solved?, or Do you mean there is a thread where is explained how to workaround the problem? If this is the case, I couldn't find the thead.
thumbnail
David H Nebinger,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Alberto Fuentes:
Following the Liferay 6.1 GA3 documentation, I have not found anything about database changes, so, the database used for GA3 is the same as GA2. Is this correct?


Maybe, maybe not. Liferay manages it's own database. You should not be in there, and whether they choose to update it or not is there choice.

I have tried to download SDK (the file name remains with 6.1.1) and create a new theme, but when I have installed Liferay IDE in Eclipse and the theme is created, I realize that the content from docroot, has only 2 folders, WEB_INF and _diffs. Is this possible? Where are the others folders: css, images, js, templates. Can we trust in this SDK delivery?


Certainly this is possible. Themes have a parent theme, the root of all of these is unstyled. When you create a theme, all of your changes go into the _diffs folder. When the theme is built, the files from the parent theme are copied in (thus giving all of the folders back), then your changes in _diffs are overlayed in.

All you should ever have in a clean theme project are a WEBINF and _diffs folders.
Alberto Fuentes,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 6 加入日期: 12-10-18 最近的帖子
Thanks David.

But... what I try to mean is about the parent theme.
When you create a new theme with Liferay 6.1 GA3 SDK, there is no parent theme at all!
thumbnail
David H Nebinger,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
It's defined in the build.xml file.
Alberto Fuentes,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 6 加入日期: 12-10-18 最近的帖子
Perhaps, I am not being able to describe the problem!

When you creates a new theme from scratch, at least till Liferay SDK 6.1 GA3, the SDK itself creates 6 directories inside docroot: "_diffs", "css", "images", "js", "templates", "WEB-INF".

Once the structure is created, you change whatever you want inside "_diffs".

Well, the problem with Liferay SDK 6.1 GA3 is related to the directories created, when you creates the theme, only 2 directories are created: "_diffs" and "WEB-INF". There are 4 directories left, where should be the base files where you want to modified.

I hope now, you can understand the problem with SDK.
thumbnail
David H Nebinger,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Liferay does not build the 6 dirs at project creation. When you build the first time, those dirs are created and populated from the parent (even if _diffs is empty). If you don't have the dirs, you haven't done a build yet.

If you have done a build and you don't have the dirs, then your build.username.properties file is not pointed at Liferay (it probably cannot find the core files to copy in).
Alberto Fuentes,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 6 加入日期: 12-10-18 最近的帖子
I am using Liferay IDE, with eclipse, so, I have supposed that all the configuration is managed by the IDE.

At least, in previuous versions of Liferay SDK it was managed by the IDE itself. That's the advantage of using IDE, isn't it?

Thanks again!
thumbnail
David H Nebinger,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Alberto Fuentes:
I am using Liferay IDE, with eclipse, so, I have supposed that all the configuration is managed by the IDE.

At least, in previuous versions of Liferay SDK it was managed by the IDE itself. That's the advantage of using IDE, isn't it?


Totally wrong. The ant build scripts have always controlled the build, build config, etc. The IDE can help drive that effort and mask the fact that ant is in total control, but that's about it as far as the build goes.

The IDE has great GUI editors, supports building plugins of many different types, and has a lot of advantages that I don't want to detract from, so don't ditch using the IDE. But the build is always managed via ant (unless you're using maven, and then it's totally managed by maven).
thumbnail
Jack Bakker,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Liferay Master 帖子: 978 加入日期: 10-1-3 最近的帖子
I use Liferay IDE for CE and LDS for EE ; VERY useful tooling

yes, the Eclipse tooling interfaces via ant to the SDKs which are authoritative

David: "Liferay SDK it was managed by the IDE itself" is not necessarily totally wrong, word 'managed' might not be best tho

but yeah, same old: add folders to theme _diffs and deploy to override OTB theme templates, css, js, images, etc.
Alberto Fuentes,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 6 加入日期: 12-10-18 最近的帖子
Ok! I have try to start from the beginning, I mean, downloading files, and configuring SDK, and so on, but this time with Linux and without IDE, and the result is the same! The SDK for Liferay 6.1 GA3 (6.1.2) is not working!.

I'll wait until someone realize this SDK release is not working.

Thanks to everyone!
Seyed Mohammad Hosein Jamali,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Junior Member 帖子: 77 加入日期: 09-12-13 最近的帖子
I have same problem too!
I get a build failed message like this :

build-common-ivy.xml:17: The specified destination is a directory 


any help appreciated
S.M.H.Jamali
Seyed Mohammad Hosein Jamali,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Junior Member 帖子: 77 加入日期: 09-12-13 最近的帖子
OK, I resolve it by copying Ivy in a folder named .ivy located in the liferay-sdk. but how can I use it locally ?
thumbnail
Domingo Piña,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Junior Member 帖子: 28 加入日期: 09-4-3 最近的帖子
Edit build-common-ivy.xml, line 17:

<get dest="${ivy.home}" src="${ivy.jar.url}" />

and rewrite them as:

<get dest="${ivy.home}/ivy-${ivy.version}.jar" src="${ivy.jar.url}" />

Seems that get ant task don't like the attribute dest as a directory.
This error is also in liferay-plugins-sdk-6.2.0-ce-ga1
Monika Bhasin,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 9 加入日期: 08-10-12 最近的帖子
I am using liferay plugin SDK liferay-plugins-sdk-6.2-ce-ga2-20140319114139101. I did placed the ivy jar under .ivy folder and updated the build-common-ivy.xml file.
When I tried to create portlet using windows command prompt it hung up there with below logs nothing is happening. Please suggest.


Buildfile: build.xml
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/
::
[ivy:resolve] :: loading settings :: file = C:\liferay\liferay-plugins-sdk-6.2\i
vy-settings.xml


Thanks,
Monika
thumbnail
Juan Gonzalez,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Monika,

it is supposed to be downloading the jars. This only will happen the first time.

Are you using latest Liferay IDE (2.0.1)?
Monika Bhasin,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 9 加入日期: 08-10-12 最近的帖子
Hi Juan,

I am not using Liferay IDE yet I am trying to understand how Liferay SDK works.
Do I need to start with Liferay IDE?

Please guide.

Regards,
Monika Bhasin
thumbnail
Juan Gonzalez,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Monika,

no, it's not needed.

I just read you changed build-common-ivy. Why do you need to change that file?
Monika Bhasin,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 9 加入日期: 08-10-12 最近的帖子
Hi Juan,

When I did not changed the file I was getting below error.

BUILD FAILED
C:\..\liferay-plugins-sdk-6.2\portlets\build.xml:5: The following error occurred while executing this line:
C:\..\liferay-plugins-sdk-6.2\build-common-plugins.xml:5: The following error occurred while executing this line:
C:\..\liferay-plugins-sdk-6.2\build-common.xml:47: The following error occurred while executing this line:
C:\..\liferay-plugins-sdk-6.2\build-common-ivy.xml:17: The specified destination is a directory

Someone responded the ivy jar need to set up for avoiding the above error. I did the same, error was gone but command prompt is hanging with below logs.

Buildfile: build.xml
[ivy:resolve] :: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/
::
[ivy:resolve] :: loading settings :: file = C:\liferay\liferay-plugins-sdk-6.2\i
vy-settings.xml


Please advise.

Regards,
Monika
Monika Bhasin,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 9 加入日期: 08-10-12 最近的帖子
Hi Juan,

I dig into ivy-settings.xml file and found it is loading settings from few of the sites.

<resolvers>
<ibiblio m2compatible="true" name="asu-gibson" root="https://gibson.asu.edu/maven" />
<ibiblio m2compatible="true" name="jboss-nexus" root="https://repository.jboss.org/nexus/content/repositories/releases" />
<ibiblio m2compatible="true" name="jboss-thirdparty" root="https://repository.jboss.org/nexus/content/repositories/thirdparty-releases" />
<ibiblio m2compatible="true" name="maven2" root="http://repo1.maven.org/maven2" />
<ibiblio m2compatible="true" name="ow2-public" root="http://repository.ow2.org/nexus/content/repositories/public" />
<ibiblio m2compatible="true" name="primefaces" root="http://repository.primefaces.org" />
<ibiblio m2compatible="true" name="liferay-public" root="https://repository.liferay.com/nexus/content/groups/public" />
<ibiblio m2compatible="true" name="pentaho" root="http://repository.pentaho.org/artifactory/repo" />
<ibiblio m2compatible="true" name="soapui" root="http://www.soapui.org/repository/maven2" />


Also I did check all of the above site are accessible on my network. Still while creating the portlet it is getting hanged.

Do I need to change any other settings?

I would appreciate your help.

Thanks,
Monika
thumbnail
Juan Gonzalez,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Monika,

I am curious, where did you downloaded liferay-plugins-sdk-6.2-ce-ga2-20140319114139101 ?
Monika Bhasin,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 9 加入日期: 08-10-12 最近的帖子
Hi Juan,

I have following Liferay Plugin SDK and I downloaded from below link.

liferay-plugins-sdk-6.2-ce-ga2-20140319114139101

https://www.liferay.com/downloads/liferay-portal/available-releases

Go to Liferay Portal 6.2 Community Edition GA2 option and select "Plugins SDK" from drop down. Click download.

I found one reason of failing of portlet creation, ivy-settings.xml is pointing to one link (http://repo1.maven.org/maven2) which is no more exist.
At first point it was going to same link for searching the ivy.jar and could not find. Then I copied the jar at .ivy folder and changed the build-common-ivy.xml. Then first error was gone. Now I am facing another issue when it is going to ivy-settings.xml file and not able to retrieve setting from maven url.

It will be really helpful if you can let me know how to get rid of this error.

Thanks,
Monika
Monika Bhasin,修改在10 年前。

RE: Liferay 6.1 GA3 (6.1.2) SDK creating themes.

New Member 帖子: 9 加入日期: 08-10-12 最近的帖子
Hi Juan,

It was proxy issue. I added the below tag in build-common-ivy.xml and issue got resolved.

<setproxy proxyhost="Proxy Server" proxyport="80"/>

I am able to create portlet both by using Liferay SDK and Liferay IDE.

Thanks for your help.

Regards,
Monika