title: Can Eclipse import a Maven Web project as a "Dynamic Web Application"?
body: <p><strong>High Level Goal:</strong> Create a single Maven Web Application project that can be used correctly in both Netbeans and Eclipse</p>
  
  <p>When converting a Maven project to Eclipse, the project type doesn't seem to be set to Dynamic Web App when using the command: <strong>mvn eclipse:eclipse -Dwtpversion=2.0</strong></p>
  
  <p>In Eclipse, if creating a Dynamic Web Application, many more options are shown in the Project Explorer, such as:  <strong>JAX-WS Web Services, Deployment Descriptor, etc.</strong>   It's a completely different framework structure.</p>
  
  <p><img src="https://i.stack.imgur.com/tBvM8.png" alt="enter image description here"></p>
  
  <p>Also, after converting to Eclipse with the above command, I can't "Run" it even though the output from the conversion says: [INFO] Using as WTP server : Apache Tomcat v7.0.  Instead of wanting to run as a web service, it asks me if this is Java Servlet, Applet, or Unit test. </p>
  
  <p><img src="https://i.stack.imgur.com/BHXdl.png" alt="enter image description here"></p>
  
  <p>With a Dynamic Web App (native Eclipse), this is what shows up when Running the project:</p>
  
  <p><img src="https://i.stack.imgur.com/TH694.png" alt="enter image description here"></p>
  
  <p>Maybe I am asking too much of Eclipse, and to get the built-in web app functionality, it can't come from Maven?</p>
  
  <p>There is one other I could try.  I could create a Dynamic Web App in Eclipse, then hit "Convert to Maven" . Take that POM, modify, then see if netbeans will also load it. </p>
  
  <p><strong>My 'pom.xml':</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.voxel&lt;/groupId&gt;
  &lt;artifactId&gt;servermap&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  
  &lt;name&gt;userprofile&lt;/name&gt;
  
  &lt;properties&gt;
      &lt;endorsed.dir&gt;${project.build.directory}/endorsed&lt;/endorsed.dir&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax&lt;/groupId&gt;
          &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt;
          &lt;version&gt;6.0&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.8.2&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
          &lt;version&gt;1.8&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.grizzly&lt;/groupId&gt;
          &lt;artifactId&gt;grizzly-servlet-webserver&lt;/artifactId&gt;
          &lt;version&gt;1.9.18-m&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
          &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
          &lt;url&gt;http://download.java.net/maven/2&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p></p>