title: Cannot resolve symbol: import org.eclipse.jetty.server.Server;
body: <p>In my Vaadin Jetty Maven project :</p>
  
  <pre><code> &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.vaadin&lt;/groupId&gt;
              &lt;artifactId&gt;vaadin-core&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Added to provide logging output as Flow uses --&gt;
          &lt;!-- the unbound SLF4J no-operation (NOP) logger implementation --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-simple&lt;/artifactId&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;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-beanutils&lt;/groupId&gt;
              &lt;artifactId&gt;commons-beanutils&lt;/artifactId&gt;
              &lt;version&gt;1.9.2&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
              &lt;artifactId&gt;jetty-webapp&lt;/artifactId&gt;
              &lt;version&gt;8.1.7.v20120910&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
              &lt;artifactId&gt;jetty-server&lt;/artifactId&gt;
              &lt;version&gt;8.1.7.v20120910&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>In my Main.java:</p>
  
  <pre><code>import org.eclipse.jetty.server.Server;
  import org.eclipse.jetty.server.handler.HandlerList;
  import org.eclipse.jetty.server.handler.ResourceHandler;
  import org.eclipse.jetty.util.resource.Resource;
  
  public class Main {
      public static void main(String[] args) throws Exception {
          Server server = new Server();
  
          SelectChannelConnector connector = new SelectChannelConnector();
          connector.setPort(8080);
          server.addConnector(connector);
  
          ProtectionDomain domain = Main.class.getProtectionDomain();
          URL location = domain.getCodeSource().getLocation();
          WebAppContext webapp = new WebAppContext();
          webapp.setContextPath("/");
          webapp.setWar(location.toExternalForm());
          server.setHandler(webapp);
  
          server.start();
          server.join();
  
      }
  }
  </code></pre>
  
  <p>But I get compile error in </p>
  
  <pre><code>import org.eclipse.jetty.server.Server;
  
  Cannot resolve symbol
  </code></pre>