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.
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 based on
project requirements, so better to have a different maven settings file
like here we have : /home/manna/.m2/eusiaweb.xml
<settings>
<profiles>
<profile>
<id>examples</id>
<repositories>
<repository>
<id>sonatype</id>
<url>http://oss.sonatype.org</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>maven</id>
<url>http://repo2.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>examples</activeProfile>
</activeProfiles>
</settings>