Problem with build.xml and build definition
I have the following problem:
I have a web application in eclipse and when I export a file into a. war, the file is 14mb in size. When I generate the war file by build.xml with a buid definition, the file is 25mb in size. The war generated by build.xml I can not deploy. I don't know why. What am I doing wrong? help me please! |
2 answers
Krzysztof,
I solved the problem. The ANT war tag was duplicating the jar files of WEB-INF/LIB. Because of this the war file was 25 MB. The solution was to modify the war tag as follow: <war destfile="build/dist/SITRA.war" webxml="WebContent/WEB-INF/web.xml" manifest="WebContent/META-INF/MANIFEST.MF"> <fileset dir="WebContent"> <include name="**/**"/> <exclude name="WEB-INF/lib/*.*"/> </fileset> <lib dir="WebContent/WEB-INF/lib/"/> <classes dir="build/classes"/> </war> I found the solution in this page: http://gradle.1045684.n5.nabble.com/War-packed-with-duplicated-jars-td4624905.html |
Ki Luiz,
I don't think it is RTC related. Anyway: exporting into war in Eclipse and building war file using ant are really different operations. Ho did you exactly created build.xml file? Did you write it manually or used any tool for that? If the file size differs, I would say that there are some libraries not exported into war. Please open both war files in zip tool (e.g. 7zip) and check what are the differences there. Then correct your build.xml file to include all files you need. BTW what do you mean that it cannot deploy it? Do you have any error message? Please elaborate. Comments Krzystof,
Krzysztof Kaźmierczyk
commented Apr 01 '14, 10:24 a.m.
Hi Luiz,
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.