lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Commented] (SOLR-11087) Get rid of jar duplicates in release
Date Mon, 17 Jul 2017 12:21:00 GMT


Jan Høydahl commented on SOLR-11087:

bq. This makes it very small and unpacking Solr would take only a second then (currently unzipping
all those small static files is a mess).
Solr no longer unzips a war since long time ago?

I did not go down that route now because it sounds very much more invasive. But I like it
a lot, and it would give us much more control over everything, including the naming of Java
options such as {{jetty.port}} which we could now rename to {{solr.port}} etc. Guess this
is how our Test framework constructs Jetty instances already.

I'm in no hurry with this. If you have time to mock up a refactoring to get rid of the dependence
of all jars being in {{WEB-INF/lib}} and instead pick them from {{/dist}} then that would
be perfect and achieve two goals in one :-)

> Get rid of jar duplicates in release
> ------------------------------------
>                 Key: SOLR-11087
>                 URL:
>             Project: Solr
>          Issue Type: Sub-task
>          Components: Build
>            Reporter: Jan Høydahl
>             Fix For: master (8.0), 7.1
>         Attachments: SOLR-11087.patch
> Sub task of SOLR-6806
> The {{dist/}} folder contains many duplicate jar files, totalling 10,5M:
> {noformat}
> 4,6M   ./dist/solr-core-6.6.0.jar (WEB-INF/lib)
> 1,2M   ./dist/solr-solrj-6.6.0.jar (WEB-INF/lib)
> 4,7M   ./dist/solrj-lib/* (WEB-INF/lib and server/lib/ext)
> {noformat}
> The rest of the files in dist/ are contrib jars and test-framework.
> To weed out the duplicates and save 10,5M, we can simply add a {{dist/}} file
listing what jar files are located where. The file could also contain a bash one-liner to
copy them to the dist folder. Another possibility is to ship the binary release tarball with
symlinks in the dist folder, and advise people to use {{cp -RL dist mydist}} which will make
a copy with the real files. Downside is that this won't work for ZIP archives that do not
preserve symlinks, and neither on Windows.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message