Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sebastien Prunier
A single Maven project for both Theme and Layout Template ?
August 27, 2013 5:34 AM
Answer

Sebastien Prunier

Rank: New Member

Posts: 8

Join Date: August 22, 2013

Recent Posts

Hi everyone !

I'm currently developing a Theme and a Layout template for Liferay 6.1.1.
I'm using Maven for the build of these two projects (I created them with the available archetypes).

My question is : is it possible to merge the two projects into a single one (so that the Maven build produces a single WAR for the Theme and the Layout Template) ?
I think I cannot do that because there's only one possible "type" in the plugin configuration :
1<pluginType>theme</pluginType>
or
1<pluginType>layouttpl</pluginType>

But perhaps I'm wrong :-)

Thanks in advance for your answers !
Regards,
Sébastien
Mika Koivisto
RE: A single Maven project for both Theme and Layout Template ?
August 27, 2013 2:58 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1505

Join Date: August 7, 2006

Recent Posts

In that case I would use the theme plugin type. That is really only used by direct-deploy and build-db. The ThemeDeployer does everything LayoutTemplateDeployer does in case of direct-deploy and there's no distinction also in build-db. You should also base your project from liferay-theme-archetype.
Sebastien Prunier
RE: A single Maven project for both Theme and Layout Template ?
September 10, 2013 2:39 AM
Answer

Sebastien Prunier

Rank: New Member

Posts: 8

Join Date: August 22, 2013

Recent Posts

Thanks for your help !