掲示板

include liferay libraries in Maven project.

13年前 に Sam Wan によって更新されました。

include liferay libraries in Maven project.

Liferay Master 投稿: 660 参加年月日: 09/03/03 最新の投稿
Hi,


I want to merge my portlet - a liferay-sdk-plugin generated portlet with another portlet that created by Maven.

My portlet is created with liferay SDK Spring Plugin.
Does anybody how to include Liferay jar files in this Maven Project?
I have included Tomcat6.0 libraries files from Eclipse->Windows->Preference->Add External Lib option.

I tried to move liferay-plugin-package.properties file to the Maven project, but I don’t’ know where to put this file to.
I have put it under src/main/resources/, but it still generates a lot of errors.. eg. “The import com.liferay cannot be resolved…”

The liferay-plugin-package.properties file from my portlet include the following library definitions:
portal.dependency.jars=\
backport-concurrent.jar,\
commons-beanutils.jar,\
commons-codec.jar,\
commons-collections.jar,\
commons-configuration.jar,\
commons-dbcp.jar,\
commons-digester.jar,\
commons-discovery.jar,\
commons-io.jar,\
commons-digester.jar,\
commons-lang.jar,\
commons-logging.jar,\
commons-validator.jar,\
easyconf.jar,\
jstl.jar,\
jstl-impl.jar,\
portals-bridges.jar,\
portal-kernel.jar,\
portal-service.jar,\
log4j.jar,\
spring.jar,\
spring-webmvc.jar,\
util-bridges.jar,\
util-java.jar,\
util-taglib,\
xstream.jar,\
jsp-api.jar


portal.dependency.tlds=\
c-rt.tld,\
c.tld,\
fmt.tld,\
fmt-rt.tld,\
liferay-portlet.tld,\
liferay-portlet-ext.tld,\
liferay-theme.tld,\
liferay-util.tld,\
x.tld

Very appreciate for any suggestion and help.

Thanks
Sam