# Any plans to unbundle Guice and other copied code?

**URL:** <https://discuss.elastic.co/t/any-plans-to-unbundle-guice-and-other-copied-code/6698>\
**Category:** Elasticsearch\
**Created:** [February 14, 2012, 12:33am UTC](https://discuss.elastic.co/t/any-plans-to-unbundle-guice-and-other-copied-code/6698 "2012-02-14T00:33:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![derrickburns](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@derrickburns](https://discuss.elastic.co/u/derrickburns)\
**Post date:** [February 14, 2012, 12:33am UTC](https://discuss.elastic.co/t/any-plans-to-unbundle-guice-and-other-copied-code/6698/1 "2012-02-14T00:33:53Z")

</div>

Is the version of elasticsearch version of Guice different from 3.0? Same  
question for the other libs that are in elasticsearch.

Now that elasticsearch supports Maven, would it make sense not to bundle  
code that is unchanged in elasticsearch?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 14, 2012, 6:03am UTC](https://discuss.elastic.co/t/any-plans-to-unbundle-guice-and-other-copied-code/6698/2 "2012-02-14T06:03:25Z")

</div>

Having theses libs embedded in ES lets developpers use their own version of useful libs without classloading issues.

See here : [http://groups.google.com/a/elasticsearch.com/group/users/msg/6449836b9631fee6](http://groups.google.com/a/elasticsearch.com/group/users/msg/6449836b9631fee6)

HTH  
David 😉  
@dadoonet

Le 14 févr. 2012 à 01:33, Derrick [derrickrburns@gmail.com](mailto:derrickrburns@gmail.com) a écrit :

> Is the version of elasticsearch version of Guice different from 3.0? Same question for the other libs that are in elasticsearch.
> 
> Now that elasticsearch supports Maven, would it make sense not to bundle code that is unchanged in elasticsearch?

---

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [February 14, 2012, 7:09am UTC](https://discuss.elastic.co/t/any-plans-to-unbundle-guice-and-other-copied-code/6698/3 "2012-02-14T07:09:09Z")

</div>

On Feb 13, 4:33 pm, Derrick [derrickrbu...@gmail.com](mailto:derrickrbu...@gmail.com) wrote:

> Now that elasticsearch supports Maven, would it make sense not to bundle  
> code that is unchanged in elasticsearch?

It would, but only for people running elasticsearch in an OSG  
environment. You wouldn't want to be forced to use the same version of  
the libraries that elasticsearch happens to use...

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 14, 2012, 2:48pm UTC](https://discuss.elastic.co/t/any-plans-to-unbundle-guice-and-other-copied-code/6698/4 "2012-02-14T14:48:44Z")

</div>

elasticsearch uses guice 2.0, and its a modified version than the one provided (mainly to reduce its memory footprint). Once, before even using Guice 2.0 embedded codebase, we upgraded to 3.0 and it used even more memory and was considerable slower. As far as Guice is concerned, its now part of elasticsearch and is considered internal (but can be used by plugins).

On Tuesday, February 14, 2012 at 9:09 AM, Eric Jain wrote:

> On Feb 13, 4:33 pm, Derrick \<[derrickrbu...@gmail.com](mailto:derrickrbu...@gmail.com) ([http://gmail.com](http://gmail.com))\> wrote:
> 
> > Now that elasticsearch supports Maven, would it make sense not to bundle  
> > code that is unchanged in elasticsearch?
> 
> It would, but only for people running elasticsearch in an OSG  
> environment. You wouldn't want to be forced to use the same version of  
> the libraries that elasticsearch happens to use...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:39am UTC](https://discuss.elastic.co/t/any-plans-to-unbundle-guice-and-other-copied-code/6698/5 "2017-07-06T03:39:22Z")

</div>


