Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
caio marcelo formiga
Maven and liferay-plugin-package.properties
4. November 2009 23:45
Antwort

caio marcelo formiga

Rang: New Member

Nachrichten: 8

Eintrittsdatum: 4. November 2009

Neue Beiträge

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. November 2009 00:24
Antwort

caio marcelo formiga

Rang: New Member

Nachrichten: 8

Eintrittsdatum: 4. November 2009

Neue Beiträge

Sorry,

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

Anhänge: liferay-tomcat-jars.png (49,5k)
Lisa Simpson
RE: Maven and liferay-plugin-package.properties
6. November 2009 13:06
Antwort

Lisa Simpson

Rang: Liferay Legend

Nachrichten: 2034

Eintrittsdatum: 5. März 2009

Neue Beiträge

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

Milen Dyankov

Rang: Regular Member

Nachrichten: 173

Eintrittsdatum: 23. September 2009

Neue Beiträge

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