title: ElasticSearch exception when creating embedded node
body: <p>I am trying to create an embedded node for integration tests but for some reason i am getting some exceptions while creating the node itself that some classes are missing, </p>
  
  <p>I am using maven and the only import i have that related to ES is this </p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.elasticsearch&lt;/groupId&gt;
          &lt;artifactId&gt;elasticsearch&lt;/artifactId&gt;
          &lt;version&gt;1.4.1&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>which in turn brings all of its dependencies it needs including lucene.</p>
  
  <p>The exception happens in this code:</p>
  
  <pre><code>    @Bean(destroyMethod="close")
      public Client transportClient() {
          Node node = NodeBuilder.nodeBuilder().node(); //class not found
          Client client = node.client();
          return client;
      }
  </code></pre>
  
  <p>and the exception is as follows:</p>
  
  <p>1: </p>
  
  <pre><code>java.lang.ClassNotFoundException: groovy.lang.GroovyClassLoader
  at java.net.URLClassLoader$1.run(URLClassLoader.java:372) ~[na:1.8.0_25]
  at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[na:1.8.0_25]
  at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_25]
  at java.net.URLClassLoader.findClass(URLClassLoader.java:360) ~[na:1.8.0_25]
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_25]
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.8.0_25]
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_25]
  </code></pre>
  
  <p>2: </p>
  
  <pre><code>java.lang.ClassNotFoundException: org.apache.lucene.expressions.Expression
  at java.net.URLClassLoader$1.run(URLClassLoader.java:372) ~[na:1.8.0_25]
  at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[na:1.8.0_25]
  at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_25]
  at java.net.URLClassLoader.findClass(URLClassLoader.java:360) ~[na:1.8.0_25]
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_25]
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.8.0_25]
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_25]
  at org.elasticsearch.script.ScriptModule.configure(ScriptModule.java:98) ~[elasticsearch-1.4.1.jar:na]
  at org.elasticsearch.common.inject.AbstractModule.configure(AbstractModule.java:60) [elasticsearch-1.4.1.jar:na]
  at org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:204) [elasticsearch-1.4.1.jar:na]
  at org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:85) [elasticsearch-1.4.1.jar:na]
  </code></pre>