You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by geeky2 <ge...@hotmail.com> on 2012/03/29 18:54:12 UTC

why does building war from source produce a different size file?

hello all,

i have been pulling down the 3.5 solr war file from the mirror site.

the size of this file is:

6403279 Nov 22 14:54 apache-solr-3.5.0.war

when i build the war file from source - i get a different sized file:

 ./dist/apache-solr-3.5-SNAPSHOT.war

6404098 Mar 29 11:41 ./dist/apache-solr-3.5-SNAPSHOT.war

am i building from the wrong source?





--
View this message in context: http://lucene.472066.n3.nabble.com/why-does-building-war-from-source-produce-a-different-size-file-tp3868307p3868307.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: why does building war from source produce a different size file?

Posted by Chris Hostetter <ho...@fucit.org>.
: 6403279 Nov 22 14:54 apache-solr-3.5.0.war
: 
: when i build the war file from source - i get a different sized file:
: 
:  ./dist/apache-solr-3.5-SNAPSHOT.war
: 
: 6404098 Mar 29 11:41 ./dist/apache-solr-3.5-SNAPSHOT.war
: 
: am i building from the wrong source?

I haven't tested this to confirm, but i suspect you are just seeing hte 
effect of the "-SNAPSHOT" extension being left on all the jar names, and 
in the jar version and specversion metdata making each jar slightly 
bigger.  those jars are all then bundled up into that war

this "-SNAPSHOT" extesion happens by default when building -- official 
builds set the "version" properties explicitly.

https://wiki.apache.org/solr/HowToRelease#Release_Guidlines






-Hoss