Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Chris Jurado
Deploying in war
July 5, 2017 6:57 AM
Answer

Chris Jurado

Rank: Junior Member

Posts: 66

Join Date: July 15, 2010

Recent Posts

So I noticed that I can deploy my JSF portlets to Liferay 7 by either dropping it into the /deploy folder or in the /osgi/war folder. Is there a preferred way to do it, or is the /deploy folder only a legacy option?

Thanks
Jorge Díaz
RE: Deploying in war
July 5, 2017 7:30 AM
Answer

Jorge Díaz

LIFERAY STAFF

Rank: Liferay Master

Posts: 543

Join Date: January 9, 2014

Recent Posts

The preferred way to deploy everything (war, osgi jars and lpgks) is to copy the file to ${liferay-home}/deploy folder
Chris Jurado
RE: Deploying in war
July 5, 2017 7:50 AM
Answer

Chris Jurado

Rank: Junior Member

Posts: 66

Join Date: July 15, 2010

Recent Posts

Okay thanks.

Just out of curiosity, what's the difference? Thanks!
Jorge Díaz
RE: Deploying in war
July 5, 2017 8:27 AM
Answer

Jorge Díaz

LIFERAY STAFF

Rank: Liferay Master

Posts: 543

Join Date: January 9, 2014

Recent Posts

Liferay deployer monitors deploy folder and does different actions depending on file type.
In the specific case of war files, they are copied to /osgi/war folder by deployer monitor, but I don't know deployer is doing additional actions or not.
So I think it is safer to deploy to /deploy folder in order to trigger deployer logic.
Chris Jurado
RE: Deploying in war
July 5, 2017 9:29 AM
Answer

Chris Jurado

Rank: Junior Member

Posts: 66

Join Date: July 15, 2010

Recent Posts

Thanks very much!
Vernon Singleton
RE: Deploying in war
July 5, 2017 9:33 AM
Answer

Vernon Singleton

LIFERAY STAFF

Rank: Expert

Posts: 302

Join Date: January 14, 2013

Recent Posts

Hi Chris,

Putting artifacts in $LIFERAY_HOME/deploy is a legacy convention and backwards-compatible convenience, but it is fine to copy directly to the $LIFERAY_HOME/osgi/war folder which has the small benefit of not incurring the copy/move operation from $LIFERAY_HOME/deploy.

Hope that helps,
Vernon
Chris Jurado
RE: Deploying in war
July 5, 2017 9:49 AM
Answer

Chris Jurado

Rank: Junior Member

Posts: 66

Join Date: July 15, 2010

Recent Posts

Makes sense,

Thanks!

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!