Nice tutorial by http://www.eusia.info
Have a look !!!
Assuming
that you have JDK and Maven set up in you machine, I will write here how
we can have a liferay project in minimal effort and make it
distributable in all environments.
We will use Maven archtype plug-in to create liferay project.
Consider a folder as your project home, like: /home/manna/examples/liferay
if
you working with maven you can have several maven settings...