Fórumok

Deploying ext to Liferay with Maven

Guillaume K, módosítva 11 év-val korábban

Deploying ext to Liferay with Maven

New Member Bejegyzések: 11 Csatlakozás dátuma: 2012.03.06. Legújabb bejegyzések
Hi there,

I have my ext project built with maven archetype that looks like that :

myproject-liferay
[_myproject-liferay-ext
[_myproject-liferay-ext-impl
[_myproject-liferay-ext-lib-global
[_myproject-liferay-ext-lib-portal
[_myproject-liferay-ext-service
[_myproject-liferay-ext-util-bridges
[_myproject-liferay-ext-util-java
[_myproject-liferay-ext-util-taglib
[_myproject-liferay-ext-web
pom.xml

I have customize portlet-ext.xml in myproject-liferay-ext-web and i want to deploy my ext.
So in the folder myproject-liferay, i run "mvn package".
Then "mvn liferay:deploy"

And after that, i have in my tomcat/webapp/folders :

myproject-liferay-ext
myproject-liferay-ext-web-1.0.0.SNAPSHOT

Why do i have this myproject-liferay-ext-web-1.0.0.SNAPSHOT ?

What are the correct goals to build and deploy the ext, and from where (which folder ?)
thumbnail
Alexey Melnikov, módosítva 11 év-val korábban

RE: Deploying ext to Liferay with Maven

Regular Member Bejegyzések: 108 Csatlakozás dátuma: 2012.03.27. Legújabb bejegyzések
Found the same problem.

You should execute deploy not from folder with parent pom.xml, here you need call mvn install
liferay:deploy command should be called from [artifactId]-ext folder.