Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
caio marcelo formiga
Maven and liferay-plugin-package.properties
4 de Novembro de 2009 23:45
Resposta

caio marcelo formiga

Ranking: New Member

Mensagens: 8

Data de entrada: 4 de Novembro de 2009

Mensagens 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
RE: Maven and liferay-plugin-package.properties
5 de Novembro de 2009 00:24
Resposta

caio marcelo formiga

Ranking: New Member

Mensagens: 8

Data de entrada: 4 de Novembro de 2009

Mensagens recentes

Sorry,

Now follows the attached image with the list of all jars that comes at $LIFERAY_HOME/lib.
Anexo

Anexos: liferay-tomcat-jars.png (49,5k)
Lisa Simpson
RE: Maven and liferay-plugin-package.properties
6 de Novembro de 2009 13:06
Resposta

Lisa Simpson

Ranking: Liferay Legend

Mensagens: 2034

Data de entrada: 5 de Março de 2009

Mensagens recentes

This should probably be in "Development" and not "Setup"
Milen Dyankov
RE: Maven and liferay-plugin-package.properties
7 de Novembro de 2009 04:35
Resposta

Milen Dyankov

Ranking: Regular Member

Mensagens: 173

Data de entrada: 23 de Setembro de 2009

Mensagens recentes

Since you are using Maven you may want to try liferay-maven-sdk