Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jaydip Lakhatariya
Create Single war containing multiple portlets and theme
July 20, 2013 2:31 AM
Answer

Jaydip Lakhatariya

Rank: New Member

Posts: 19

Join Date: April 18, 2013

Recent Posts

Helllo,

I have multiple portlet projects and themes, i want to combine them all and make one single war file , so i have to deploy only single war instead of multiple wars.

Is it possible ??

Please need help

Thank you.
Manish Yadav
RE: Create Single war containing multiple portlets and theme
July 20, 2013 3:08 AM
Answer

Manish Yadav

Rank: Expert

Posts: 463

Join Date: May 26, 2012

Recent Posts

Yes Jaydip ..It is possible for portlets and hook. For Theme you have to create separate war file. if you are using LIferayIDE then it very easy to create.

First portlet you can create by selecting New Liferay Project and For Second Portlet you can choose new Liferay Portlet

Regards
Manish Banwari Lal Yadav
Jaydip Lakhatariya
RE: Create Single war containing multiple portlets and theme
July 20, 2013 3:39 AM
Answer

Jaydip Lakhatariya

Rank: New Member

Posts: 19

Join Date: April 18, 2013

Recent Posts

Hellloo,

Thank you for answer.

Your point is right if i need to create new portlets,
but portlets are already created , i just have to combine with single package.

Just for information i used struts framework in every portlet
Manish Yadav
RE: Create Single war containing multiple portlets and theme
July 20, 2013 4:23 AM
Answer

Manish Yadav

Rank: Expert

Posts: 463

Join Date: May 26, 2012

Recent Posts

Hi Jaydeep
Now you have to manually update all portlet id entries into portlet.xml file..and manually move package and folder structure .

You can do one thing...
Create new liferay project with same name into another SDK and then create portlets with same name and finally you can copy all your files into newly created structure..
Regards
Manish Banwari Lal Yadav
Ashok BS
RE: Create Single war containing multiple portlets and theme
August 30, 2013 2:04 AM
Answer

Ashok BS

Rank: Junior Member

Posts: 30

Join Date: August 26, 2013

Recent Posts

Hi,

How can we do it through the build scripts if any or what are the steps to follow ? i mean how can i combine these projects say: SampleTheme-theme, Columns-3-3-layouttpl & Sample-portlet into one war file so that i can deploy these on to a linux server which has liferay installed on it?

-Ashok