Fórumok

How to create war from liferay source or svn?

Shravan A, módosítva 14 év-val korábban

How to create war from liferay source or svn?

Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2009.01.05. Legújabb bejegyzések
Hi All,

I have made some changes in portal source & i want to deploy in my application server.
How can i create war from my modified portal source.

(
Some may recommend to deploy liferay.war from downloads & do customization in hooks or ext & deploy.
On some of the servers ext is not working because of the way classes are loaded.
I know that using dependency in properties is a solution for this.
But i would like to know the ant command to create war from svn or portal src.
)

Thanks in advance

Regards,
Shravan A
thumbnail
Minhchau Dang, módosítva 14 év-val korábban

RE: How to create war from liferay source or svn?

Liferay Master Bejegyzések: 598 Csatlakozás dátuma: 2007.10.22. Legújabb bejegyzések
ant clean start deploy
mkdir dist
ant -buildfile build-dist.xml zip-portal-war
thumbnail
Zeeshan Khan, módosítva 12 év-val korábban

RE: How to create war from liferay source or svn?

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
Minhchau Dang:
ant clean start deploy
mkdir dist
ant -buildfile build-dist.xml zip-portal-war



Hi Minhchau !

what and where should i give the address of my Liferay bundle in this command.....????

thanks !!
thumbnail
David H Nebinger, módosítva 12 év-val korábban

RE: How to create war from liferay source or svn?

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
This is normally done in the build-{username}.properties.
Konstantin Surzhin, módosítva 12 év-val korábban

RE: How to create war from liferay source or svn?

New Member Bejegyzések: 8 Csatlakozás dátuma: 2012.01.21. Legújabb bejegyzések
Shravan A:
Hi All,

I have made some changes in portal source & i want to deploy in my application server.
How can i create war from my modified portal source.

(
Some may recommend to deploy liferay.war from downloads & do customization in hooks or ext & deploy.
On some of the servers ext is not working because of the way classes are loaded.
I know that using dependency in properties is a solution for this.
But i would like to know the ant command to create war from svn or portal src.
)

Thanks in advance

Regards,
Shravan A


Operating system ?
jdk ?
Tomcat ?
MSQL ?
ant ?
javac or ECJ?
env.ANT_OPTS="-Xmx1024m -XX:MaxPermSize=512" ?

user ? (root or tomcat)

build --> test --> deploy

Some shared libraries are not included to war. :-(
Some files must be stored in directories under root user. :-(
Database should be created manually. (not yet found how to do it from the ant) :-(
You must specify in the configuration files user and password for database.
A lot of test failed. :-(
The deployment will be into ROOT directory of tomcat. :-( :-( !!!
So,at first the entire ROOT is removed. !!!
You must specify in the configuration files to another directory or complete collapse for ROOT directory. :-(

*.war file will be based portal-web directory, but WEB_INF classes directory there will be no any *.classes or *.propeties
So I think, You can not deploy from this file. :-(
I think everything is very raw.

If you work under Linux...
You need setup netbeans. Open a project from the ide. And be patient. ;-)
thumbnail
David H Nebinger, módosítva 12 év-val korábban

RE: How to create war from liferay source or svn?

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Shravan A:
I have made some changes in portal source & i want to deploy in my application server.


Fail.

Some may recommend to deploy liferay.war from downloads & do customization in hooks or ext & deploy.
On some of the servers ext is not working because of the way classes are loaded.


If this were really a problem then Liferay would not be able to claim support for multiple application servers.

I think the issue is probably yours and would be traced back to some custom configuration that was incorrectly applied.