The following article will try to speed up your development. I had just prepare the empty maven project structure. Download the project from here and run the maven command.
Preparation
- Extract the zip file into your workspace.
- Open the command dos, point to your workspace and run mvn clean eclipse:eclipse
- Web project’s pom file will act as parent pom’s. Additional library should added to parent pom.
- Sub-project should refer to the parent pom file with version parameter.
- If the library already exist in liferay, dependency should add scope as provided
- Add the libaray reference to liferay-plugin-package.
Example
Your portal dependency file :
-
portal-dependency-jars=\commons-beanutils.jar,\ commons-collections.jar,\ commons-configuration.jar,\commons-digester.jar,\ commons-lang.jar,\ commons-validator.jar,\
Your sub-project pom file should be
-
commons-lang
-
commons-lang
-
${commons-lang-version}
-
provided
Sample File
Download the project here

Posted in 


