[ https://issues.apache.org/jira/browse/SOLR-11087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16956263#comment-16956263 ]
Uwe Schindler commented on SOLR-11087: -------------------------------------- Hi, I think the issue here should focus to get rid on the web application and have a single lib folder directly below the root dir of the distribution. Then we have a solr-main.jar (without solrj) and this one also contains a Main.class to bootstrap Jetty. This would make deployment much easier. As said before, the tons of Java/Javascript should also be packaged into a JAR file to get rid of tons of small files making unzipping damn slow and consume lots of space (block size). Jetty is able to deliver static contents from a JAR file directy, I use this all the time for microservice-like stuff. Once we are at that place we could maybe split the root lib folder into 2 of them: One with Solrj and one with the remaining stuff to startup the server. The contrib modules can be linked into cores the usual way with {{<lib>}}. If I would have some more time, I could start in refactoring all this, but my knowledge with Solr is limited. I'd really like to get rid of SolrDispatchFilter and replace it with a simple servlet directly added to the root context in the Solr Bootstrap class. About your comment: Hardlinks is a problem on Windows, and Symlinks are not better. I'd not do this. > Get rid of jar duplicates in release > ------------------------------------ > > Key: SOLR-11087 > URL: https://issues.apache.org/jira/browse/SOLR-11087 > Project: Solr > Issue Type: Sub-task > Components: Build > Reporter: Jan Høydahl > Priority: Major > Fix For: 8.1, master (9.0) > > 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/README.md}} 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 (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org