On 10-08-21 12:38 PM, Mike Dee wrote:
Here is what I've been trying.  Install Eclipse with Tomcat integration.


mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp
-DarchetypeArtifactId=maven-archetype-webapp

and then generate Eclipse project files

mvn eclipse:eclipse


This is very similar to how I'm working, so there must be something wrong. First, what do you mean by "Eclipse with Tomcat Integration"? I use the Eclipse JEE version that comes with the Web Tooling Platform (WTP), which understands the web-app nature of your project.

Next, look in your pom.xml. You should see something like this...

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <downloadSources>true</downloadSources>
          <downloadJavadocs>true</downloadJavadocs>
          <wtpContextName>/myapp</wtpContextName>
          <wtpversion>1.5</wtpversion>
        </configuration>
      </plugin>

It's the wtpContextName and wtpversion elements that identify the project as a web app, and allow mvn eclipse:eclipse to generate the right project structure. Does your pom.xml look OK?

jk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to