Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Priyanka Dhingra
Liferay with Maven
June 19, 2013 2:19 AM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

is Liferay 6.1.1CE good to go with maven.
We are building a Portal..Is it safe to go on with maven rather than ANT?
Sampsa Sohlman
RE: Liferay with Maven
June 19, 2013 11:03 AM
Answer

Sampsa Sohlman

LIFERAY STAFF

Rank: Regular Member

Posts: 226

Join Date: September 27, 2007

Recent Posts

Hi Priyanka

It is safe to develop Liferay plugins with Maven, and for maven developer it is natural way to start work with maven. Maven fits by the default easily to CI tools like Jenkins and Sonar.

If you have maven installed to your computer. It is very easy to create Liferay plugin with maven.

Just write:

1mvn archetype:generate


Filter the list with word liferay and choose your plugin type.

More information you can find out from our documentation documentation.

Kind regards,

Sampsa
Priyanka Dhingra
RE: Liferay with Maven
June 20, 2013 5:05 AM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

I had been trying it....So far, I have observed one thing while using the service builder...
The project sructure is a bit awkward

It creates 3 folders
1) in workspace
2) as xxx-portlet
3) as xxx-service

Is that correct???Thats how it should work??
Priyanka Dhingra
RE: Liferay with Maven
June 23, 2013 9:55 PM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

Anybody??
Priyanka Dhingra
RE: Liferay with Maven
June 26, 2013 1:33 AM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

Anyone ??
Mika or someone???
Jose Jimenez
RE: Liferay with Maven
June 26, 2013 2:03 AM
Answer

Jose Jimenez

LIFERAY STAFF

Rank: Regular Member

Posts: 151

Join Date: August 22, 2012

Recent Posts

Hi Priyanka,

As you say, using service-builder archetype creates a maven project with two modules.

1) maven project
2) xxx-portlet -> portlet & service layer implementation
3) xxx-service -> service layer (interfaces)

If you build this maven project (1), you will get the .war file of the xxx-portlet, and inside, the xxx-service.jar.

This structure makes possible to access to the xxx-portlet-model entities from other portlets, just using xxx-service.jar as dependency of them.

I hope you find helpful this information.
Kind regards,
Jose
Priyanka Dhingra
RE: Liferay with Maven
June 26, 2013 2:28 AM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

Yes, thanks Jose, this information is indeed very useful..Is there any documentation that has all this and some more info regarding these all maven archetypes...(it builds confidence to see, if things are moving on the right track emoticon)
Jose Jimenez
RE: Liferay with Maven
June 26, 2013 3:01 AM
Answer

Jose Jimenez

LIFERAY STAFF

Rank: Regular Member

Posts: 151

Join Date: August 22, 2012

Recent Posts

Take a look into the Development Guide emoticon