Fórum

Maven and liferay-plugin-package.properties

caio marcelo formiga, modificado 14 Anos atrás.

Maven and liferay-plugin-package.properties

New Member Postagens: 7 Data de Entrada: 05/11/09 Postagens Recentes
Hi Liferay Community,

According to this link I don’t need to depend on Plugins SDK to compile and package my portlet into WAR, since I can use the Eclipse. Actually, I`m using Maven as build tool and library manager.

So, still according to above link, the file liferay-plugin-package.properties is used to describes the plugin to Liferay's hot deployer. One of
the things that can be configured in this file is dependency .jars. If a portlet plugin has dependencies on particular .jar files that already come with Liferay, you can specify them in this file and the hot deployer will modify the .war file on deployment so that those .jars are on the class path. The link suggest that my file should be like this:
name=Sample ICEfaces JSF 1.2 Sun Facelets

module-group-id=liferay

module-incremental-version=1

tags=sample

short-description=This plugin shows how to use ICEfaces and the JSF 1.2 Sun RI and the Facelets view-handler within Liferay. Requires Tomcat 6.x, GlassFish 2.0.x, or JBoss AS 4.2.x since JSF 1.2 has a JRE5 dependency.

change-log=

page-url=http://www.liferay.com

author=Liferay, Inc.

licenses=MIT



portal-dependency-jars=\

commons-beanutils.jar,\

commons-collections.jar,\

commons-digester.jar,\

commons-fileupload.jar,\

commons-lang.jar,\

commons-validator.jar,\

oro.jar

speed-filters-enabled=false


The attached image list all jars that comes at $LIFERAY_HOME/lib. Now comes my doubt. If my project depends on xml-api.jar what should I do?
put at my pom.xml file this dependency as follow? Or maybe add the <scope>provided</scope> tag? Or just omit this dependency from pom.xml and let Liferay Portal and the liferay-plugin-package.properties do its work:

<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.0.b2</version>
</dependency>

Best Regards,

Caio Formiga
caio marcelo formiga, modificado 14 Anos atrás.

RE: Maven and liferay-plugin-package.properties

New Member Postagens: 7 Data de Entrada: 05/11/09 Postagens Recentes
Sorry,

Now follows the attached image with the list of all jars that comes at $LIFERAY_HOME/lib.
thumbnail
Lisa Simpson, modificado 14 Anos atrás.

RE: Maven and liferay-plugin-package.properties

Liferay Legend Postagens: 2034 Data de Entrada: 05/03/09 Postagens Recentes
This should probably be in "Development" and not "Setup"
thumbnail
Milen Dyankov, modificado 14 Anos atrás.

RE: Maven and liferay-plugin-package.properties

Regular Member Postagens: 171 Data de Entrada: 23/09/09 Postagens Recentes
Since you are using Maven you may want to try liferay-maven-sdk