Forums de discussion

Maven to build liferay portlets

robin thakur, modifié il y a 10 années.

Maven to build liferay portlets

Regular Member Publications: 146 Date d'inscription: 09/01/14 Publications récentes
Hi,

I have number of portlets and I want to build all the portlets in a single bundle using Maven, anybody tell me how I do this.

thanks
sravan kumar, modifié il y a 10 années.

RE: Maven to build liferay portlets

Junior Member Publications: 78 Date d'inscription: 19/02/13 Publications récentes
use liferay-maven-plugin
Pritesh Shah, modifié il y a 10 années.

RE: Maven to build liferay portlets

Junior Member Publications: 31 Date d'inscription: 05/07/12 Publications récentes
create a parent pom.xml and modules as all your portlets
Nilang I Patel, modifié il y a 6 années.

RE: Maven to build liferay portlets

Junior Member Publications: 31 Date d'inscription: 26/07/11 Publications récentes
You need to create one parent project (you may called it core) and put all your modules inside that. Then you need to add the entries of your plugin in core's pom.xml as modules.

Once this is done, then just by building Core, it will also build other modules. There is one exception in this. If you are using service builder portlet, you need to first manually build service and then start build core.

Hope this works. You may like to know How to develop Liferay plugin with maven (Creating Liferay MVC in Maven)

Regard
Nilang Patel
www.opensource-techblog.com