Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Tribune

Home » Liferay Social Office

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
dave ch
deploy vs direct-deploy
5 aprile 2013 6.43
Risposta

dave ch

Punteggio: Regular Member

Messaggi: 164

Data di Iscrizione: 6 febbraio 2012

Messaggi recenti

Hi all,
What is the difference between deploy and direct-deploy ? In liferay eclipse right clicking on a portlet's build.xml and moving towards Liferay - SDK we have deploy and direct-deploy options, many times i need to direct-deploy my hook to make it working.
Anybody have any meaningful insight ?

Thanks,
dave
Mika Koivisto
RE: deploy vs direct-deploy
5 aprile 2013 17.06
Risposta

Mika Koivisto

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1508

Data di Iscrizione: 7 agosto 2006

Messaggi recenti

deploy is pretty much the same thing as copying the war to Liferay's deployment directory (that's actually what it does). direct-deploy will perform the same thing as Liferay's autodeployer does to the war after it's detected in deploy directory. After direct deployment you can copy the war to the appserver deploy directory directly because Liferay has already done all the modifications it needs to do to the war.
Tomasz Bartczak
RE: deploy vs direct-deploy
26 agosto 2013 9.39
Risposta

Tomasz Bartczak

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 26 agosto 2013

Messaggi recenti

I scanned through goals.

Is there any doc page that displays all of them with description?

Is there a goal like direct-deploy, but a one that does not require appServerDeployDir to be set - just a 'enhancing war' goal, that would allow it to be installed to repository with some classifier maybe, e.g. abc-liferay-enhanced.war ?
David H Nebinger
RE: deploy vs direct-deploy
26 agosto 2013 13.31
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 10342

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

Dude, you're mixing maven w/ ant. The OP was asking about the ant tasks defined for the social office portlets. I don't believe they have been migrated or are available for maven. If the project doesn't come with a pom.xml file, then it is just ant and maven doesn't apply.
Tomasz Bartczak
RE: deploy vs direct-deploy
27 agosto 2013 0.28
Risposta

Tomasz Bartczak

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 26 agosto 2013

Messaggi recenti

Yes now I see that original question was for ant, but currently thos goals applies for mavn as well, looking at:
mvn help:describe -Dplugin=liferay

liferay:build-css
Description: (no description available)

liferay:build-db
Description: (no description available)

liferay:build-ext
Description: (no description available)

liferay:build-lang
Description: (no description available)

liferay:build-service
Description: Builds Liferay Service Builder services.

liferay:build-thumbnail
Description: (no description available)

liferay:build-wsdd
Description: (no description available)

liferay:deploy
Description: (no description available)

liferay:direct-deploy
Description: (no description available)

liferay:theme-merge
Description: (no description available)

however those goals are not documented very well, and this was my intention to get some documentation
asif aftab
RE: deploy vs direct-deploy
2 aprile 2014 23.06
Risposta

asif aftab

Punteggio: Junior Member

Messaggi: 92

Data di Iscrizione: 2 settembre 2013

Messaggi recenti

I want to add some custom field using expando. My program is working fine and I am successfully added columns to the table.
The problem is when I deploy then deployment stopped after build successful message the same I achieved from direct-deploy.
So why direct deploy is working well but the same thing we can't get by using deploy. What is the difference for such behavior.
Yup this question is silly but I want to know the precise difference between deploy and direct deploy.
Arun R S Chandran
RE: deploy vs direct-deploy
9 aprile 2014 8.09
Risposta

Arun R S Chandran

Punteggio: Regular Member

Messaggi: 148

Data di Iscrizione: 12 marzo 2013

Messaggi recenti

Some times, eclipse fail to properly clean up deploy the war files into Liferay server. I faced this issue a lot of times. But the same time direct deploy was always deploying the war files perfect to my Liferay server.

I think you are running your server directly from eclipse. I suggest run liferay tomcat outside eclipse, becuase it is almost how you will do with your deployment time.

Hope this clarifies your question.

Thank you.