« Back

Liferay 6.1 GA2 Maven release

Company Blogs August 8, 2012 By Mika Koivisto Staff

I'm glad to announce that we have release maven artifacts for Liferay 6.1 GA2 for both EE and CE. The CE version of portal artficats are in currently in Sonatype's repository waiting to be synced to Central and EE artifacts are available for download in customer portal like before. We've also released the Liferay Maven Support project that is the plugins sdk equivalent for Maven.  Both CE and EE compatible versions are being synced to Central. Please remember that this is not supported through your portal support contract. If you find any bugs in the Maven plugin or archetypes please file them to the MAVEN Jira project. The CE GA2 version number is 6.1.1 and EE GA2 version number is 6.1.20. Remember to use a version corresponding to your running portal version as mixing versions might cause problems.

We've also added some new features and improvements.

New features

  • DBBuilder - build-db goal allows you to execute the DBBuilder to generate SQL files
  • SassToCSSBuilder - build-css goal precompiles SASS in your css and this goal has been added to theme archetype
  • JSF Portlet Archetype
  • ICEFaces Portlet Archetype
  • PrimeFaces Portlet Archetype
  • Liferay Faces Alloy Portlet Archetype

Improvements

  • Allow setting service build number and turn off auto increment for ServiceBuilder. 
  • Allow build-service and direct-deploy from the parent project for Service builder and Ext projects.

 

Threaded Replies Author Date
[...] Liferay 6.1 GA2 Maven released now !!!... Anonymous August 8, 2012 10:44 PM
Where can I found more info about... Krzysztof Makowski August 9, 2012 1:55 AM
woot! Compiling now! Dana Oredson August 9, 2012 8:16 AM
Thanks Mika! Neil Griffin August 9, 2012 8:32 AM
[...] Liferay 6.1 GA2 Maven released now !!!... Anonymous August 9, 2012 11:34 AM
I welcome the Maven support. The only thing I... Carlos Adolfo Ortiz Quirós August 10, 2012 6:33 AM
Hi Carlos, We currently have a Maven supported... Cody Hoag August 10, 2012 9:18 AM
Thanks for sharing this Mika.. Jay Patel August 14, 2012 11:59 AM
Thanks Mika, it will help us a lot. Deawn Md Alimozzaman August 17, 2012 12:41 PM
[...] New Blog Entries: Cincinatti Film... Anonymous August 22, 2012 11:34 AM
I failed to find liferay-maven-plugin artifacts... Prashant Yadav, PMP August 24, 2012 10:43 AM
If you search for "com.liferay.maven" at... Neil Griffin August 24, 2012 10:56 AM
Thanks for your response! But I am looking for... Prashant Yadav, PMP August 24, 2012 12:49 PM
The 6.1.20 artifacts will be available in Maven... Neil Griffin August 24, 2012 1:23 PM
Thanks Neil! That helped. Prashant Yadav, PMP August 27, 2012 8:40 AM
6.1.20 version is now re released after it was... Mika Koivisto August 27, 2012 10:16 AM
[...] Hi David, When you have time, could you... Anonymous September 1, 2012 10:14 PM
Hi Mike, I am not able to find jar files of... Payal Shah September 12, 2012 11:47 PM
http://search.maven.org/#artifactdetails%7Ccom.... Neil Griffin September 13, 2012 9:26 AM
Hi Neil, Thanks for the reply, but i used the... Payal Shah September 13, 2012 11:30 PM
The EE portal artifacts are available for... Mika Koivisto September 13, 2012 11:59 PM
I've just installed Liferay 6.1.1 GA2, and it... Ramón Rial September 18, 2012 12:27 AM
More info: When I do mvn package all... Ramón Rial September 18, 2012 1:21 AM
Hi Ramón, I'm having the same problem. Did you... Miguel Cruz October 4, 2012 4:08 AM
The same for me. Executing mvn liferay:deploy I... Denis Signoretto October 10, 2012 1:39 AM
I can not find “My Workflow Tasks” and "My... y g October 11, 2012 2:16 AM
Any chance that you could provide the correct... Ville Likitalo October 29, 2012 1:03 AM
"Please remember that this is not supported... Edward Han December 12, 2012 10:44 AM
Ed the artifacts like portal-impl, portal-web... Mika Koivisto December 12, 2012 10:58 AM
I cant get either mvn liferay:deploy or mvn... Johnathan Burbea February 28, 2013 10:51 PM
goddamn worse piece of bloatware ever created.... gl ldm May 25, 2013 12:40 AM

[...] Liferay 6.1 GA2 Maven released now !!! Check below blog from Mika Koivisto Liferay 6.1 GA2 Maven Flag Please sign in to flag this as inappropriate. Mark as an Answer [...] Read More
Posted on 8/8/12 10:44 PM.
Where can I found more info about direct-deploy? In which cases I should use this goal?
Posted on 8/9/12 1:55 AM.
woot! Compiling now!
Posted on 8/9/12 8:16 AM.
Thanks Mika!
Posted on 8/9/12 8:32 AM.
[...] Liferay 6.1 GA2 Maven released now !!! Check below blog from Mika Koivisto Liferay 6.1 GA2 Maven Flag Please sign in to flag this as inappropriate. Mark as an Answer [...] Read More
Posted on 8/9/12 11:34 AM.
I welcome the Maven support. The only thing I am complaining now is that it is not very clear as to how to get started with the Maven support that Liferay as a company is giving to it.

Liferay Maven Support, good, but I am not getting to it. I know this is a blog post and many topics are not covered because it is assumed that we should have known the Maven Support is long dated.

I also don't know why v6.0.x was not included in this Maven support.

A question. Why SaaS and not Less or even both?

I mean, it would be desirable to have a much more dedicated page to get started about this Maven Support and be current.
Posted on 8/10/12 6:33 AM.
Hi Carlos,
We currently have a Maven supported page that is under construction for our Developer's Guide. This page will be intended for getting started and how to get users up to speed with Maven. This section will serve as a centrally located place geared exclusively for Liferay's use of Maven.
Posted on 8/10/12 9:18 AM.
Thanks for sharing this Mika..
Posted on 8/14/12 11:59 AM.
Thanks Mika, it will help us a lot.
Posted on 8/17/12 12:41 PM.
[...] New Blog Entries: Cincinatti Film Festival and Liferay, Custom Footer Navigation, Maven and GA2, 6.1 Development Guide, Liferay Open Development, Workflow Context Variables, and many more. Also, I... [...] Read More
Posted on 8/22/12 11:34 AM.
I failed to find liferay-maven-plugin artifacts on Maven Central or Sonatype for GA2.
Posted on 8/24/12 10:43 AM in reply to .
If you search for "com.liferay.maven" at http://search.maven.org, you should be able to find artifacts with version 6.1.1 which means 6.1 CE GA2.
Posted on 8/24/12 10:56 AM in reply to Prashant Yadav, PMP.
Thanks for your response!
But I am looking for 6.1.20 version(EE)
Posted on 8/24/12 12:49 PM in reply to Neil Griffin.
The 6.1.20 artifacts will be available in Maven Central soon.

For now, you can click on the "ZIP" button for the 6.1.20 tag at GitHub:
https://github.com/liferay/liferay-maven-support/tree/6.1.20

Then after extracting the ZIP, open a terminal window in the extracted folder and type "mvn clean install"

That will install the artifacts into your local repository.
Posted on 8/24/12 1:23 PM in reply to Prashant Yadav, PMP.
Thanks Neil!
That helped.
Posted on 8/27/12 8:40 AM in reply to Neil Griffin.
6.1.20 version is now re released after it was accidentally removed.
Posted on 8/27/12 10:16 AM.
[...] Hi David, When you have time, could you start with a simple portlet project, and add the p:gmap component in such a way that it reproduces the problem? If you are using the Liferay Maven SDK, then... [...] Read More
Posted on 9/1/12 10:14 PM.
Hi Mike,
I am not able to find jar files of version 6.1.20 from maven repo or from sonatype. Please help.
Posted on 9/12/12 11:47 PM.
http://search.maven.org/#artifactdetails%7Ccom.liferay.maven%7Cmaven-support%7C6­.1.20%7Cpom
Posted on 9/13/12 9:26 AM in reply to Payal Shah.
Hi Neil, Thanks for the reply, but i used the same dependencies but maven is not able to find and download the dependencies for version 6.1.20
Posted on 9/13/12 11:30 PM in reply to Neil Griffin.
The EE portal artifacts are available for download on customer portal. You need to install them to your own repository.
Posted on 9/13/12 11:59 PM in reply to Payal Shah.
I've just installed Liferay 6.1.1 GA2, and it works fine. I am developing a simple example with Maven and Liferay Maven SDK, I've indicate liferay.version=6.1.1, but it tries download artifacts 6.1.20. The artifacts are not in Maven Central. A simple search in Maven Central of util-bridges, shows:
com.liferay.portal util-b­ridges 6.1.1 all (8) 08-Aug-2012

May be artifacts are in another repository?
Thank you for your time.
Posted on 9/18/12 12:27 AM in reply to Mika Koivisto.
More info:
When I do
mvn package
all works fine. I manually deploy the war to liferay and it works.
But when I do
mvn liferay:deploy
It tries to download 6.1.20 artifacts and show dependency errors.
Posted on 9/18/12 1:21 AM in reply to Ramón Rial.
Hi Ramón,

I'm having the same problem. Did you get to solve it?

Thank you very much
Posted on 10/4/12 4:08 AM in reply to Ramón Rial.
The same for me. Executing mvn liferay:deploy I get this error:

Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.20:deploy (default-cli) on project intranet-parent: Execution default-cli of goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.20:deploy failed: Plugin com.liferay.maven.plugins:liferay-maven-plugin:6.1.20 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.liferay.portal:portal-impl:jar:6.1.20, com.liferay.portal:portal-service:jar:6.1.20, com.liferay.portal:util-bridges:jar:6.1.20, com.liferay.portal:util-java:jar:6.1.20: Failure to find com.liferay.portal:portal-impl:jar:6.1.20 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

Thanks,
Denis
Posted on 10/10/12 1:39 AM in reply to Miguel Cruz.
I can not find “My Workflow Tasks” and "My Submissions" in control pannel of Liferay 6.1 GA2 CE
Posted on 10/11/12 2:16 AM.
Any chance that you could provide the correct versions and maven artifact data for the libraries bundled in Liferay? Finding it out is currently a bit of a detective work.
Posted on 10/29/12 1:03 AM.
"Please remember that this is not supported through your portal support contract."

Can you explain what is not supported? If we use this and have EE, we cannot contact support at all? or just regarding build issues? Is there an ETA as to when Liferay will support Maven officially?
Posted on 12/12/12 10:44 AM.
Ed the artifacts like portal-impl, portal-web etc are supported through EE but the so called SDK is not. We are working on completely decoupling the sdk from portal version so that we can provide new releases faster and independently from the portal.
Posted on 12/12/12 10:58 AM.
I cant get either mvn liferay:deploy or mvn liferay:build-service to work with my local nexus. I followed the maven plugin development guide online:

http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/­developing-plugins-using-maven

Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.1:build-service (default-cli) on proje
ct sample-service-portlet: Execution default-cli of goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.1:build-serv
ice failed: Plugin com.liferay.maven.plugins:liferay-maven-plugin:6.1.1 or one of its dependencies could not be resolved
: Failure to find com.sun.media:jai-codec:jar:1.1.3 in http://localhost:8081/nexus/content/groups/public was cached in t
he local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are fo
rced -> [Help 1]

http://www.liferay.com/community/forums/-/message_boards/message/22169550
Posted on 2/28/13 10:51 PM.
goddamn worse piece of bloatware ever created. It amazes me this product is even supported/
Posted on 5/25/13 12:40 AM.