title: class file for org.apache.solr.client.solrj.embedded.EmbeddedSolrServer not found
body: <p>I would like to set up an embedded Solr server into my existing web application. But I'm failing already at creating the beans:</p>
  
  <pre><code>[ERROR] /home/danny/workspace/example/src/main/java/com/example/config/MainConfig.java:[76,45] cannot access org.apache.solr.client.solrj.embedded.EmbeddedSolrServer
    class file for org.apache.solr.client.solrj.embedded.EmbeddedSolrServer not found
  </code></pre>
  
  <p>This is my maven dependency (I would like to use the embedded server version as mentioned in the note section <a href="http://docs.spring.io/spring-data/data-solr/docs/1.0.0.RELEASE/reference/htmlsingle/#requirements" rel="nofollow">here</a>):</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
      &lt;artifactId&gt;spring-data-solr&lt;/artifactId&gt;
      &lt;version&gt;1.0.0.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
      &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
      &lt;version&gt;3.1.0&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And this is my Configuration class (necessary parts of it):</p>
  
  <pre><code>@Configuration
  @ComponentScan(basePackages = "com.example", excludeFilters = { @ComponentScan.Filter(Configuration.class) })
  @EnableSolrRepositories
  public class MainConfig {
      @Bean
      public SolrServer solrServer() {
          EmbeddedSolrServerFactory factory = new EmbeddedSolrServerFactory("classpath:com/example/solr");
          return factory.getSolrServer(); // Eclipse tells: The type org.apache.solr.client.solrj.embedded.EmbeddedSolrServer cannot be resolved. It is indirectly referenced from required .class files
      }
  
      @Bean
      public SolrOperations solrTemplate() {
          return new SolrTemplate(solrServer());
      }
  }
  </code></pre>