Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Download and install

jonas edited this page Sep 13, 2010 · 10 revisions

DISCLAIMER: I’m well aware the approach presented here is not how Maven2 is supposed to be used. All these artifacts should be placed in central or dedicated maven repository. Users should be able to use them as dependencies/plug-ins and there should be no need to manually download and install artifacts locally. There are a few reasons why it is not done this way yet! First of all I was not able to determine the exact versions of all dependent libraries so for now I use the jar files coming with Liferay. Adding them to central repository in different group is not a wise thing to do as most of them are already there anyway. Secondly, I’m afraid it could violate some software licenses. And last but not least, I strongly believe managing Liferay related maven artifacts should be done by Liferay team members.

In order to install liferay-maven-sdk, you will need a recent version of Maven 2 installed!

  1. Clone this repository or download the latest release tag from Downloads page
  2. If you choose to download zip/tar file, unpack it in a local directory of your choice
  3. Enter liferay-maven-sdk directory and execute “mvn install”

This will install the plugin, archetypes, themes and dependent jars into your local repository. It may also download some dependencies from central maven repository! Be patient as this may last quite some time (several minutes)! Once you see a summary message like this


[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] Liferay portal libraries .............................. SUCCESS [1:10.647s] [INFO] Liferay public libraries .............................. SUCCESS [0.049s] [INFO] Liferay SDK Libraries ................................. SUCCESS [0.112s] [INFO] Default _styled Theme ................................. SUCCESS [1:06.556s] [INFO] Default _unstyled Theme ............................... SUCCESS [0.866s] [INFO] Default classic Theme ................................. SUCCESS [0.626s] [INFO] Liferay portlet archetype ............................. SUCCESS [0.213s] [INFO] Liferay theme archetype ............................... SUCCESS [0.073s] [INFO] Liferay layout archetype .............................. SUCCESS [0.160s] [INFO] Liferay hook archetype ................................ SUCCESS [0.069s] [INFO] Liferay maven plugin .................................. SUCCESS [5:15.513s] [INFO] Liferay SDK based on Maven2 ........................... SUCCESS [0.004s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 minutes 50 seconds [INFO] Finished at: Wed Oct 07 22:00:36 GMT+01:00 2009 [INFO] Final Memory: 32M/129M [INFO] ------------------------------------------------------------------------

it means the liferay-maven-sdk was successfully installed in your local repository! If you want to save disk space, you can safely remove liferay-maven-sdk folder. It’s a good idea to keep the zip/tar files though, in case you need to reinstall liferay-maven-sdk later.

Clone this wiki locally