Passa ai contenuti principali

Post

Visualizzazione dei post con l'etichetta plugin

Tomcat Maven plugin tutorial

This tutorial will show you how you can create a Web application with Maven and deploy it using Maven plugin for Tomcat in a matter of minutes. The prerequisite is that you have installed in your machine: Apache Maven 2.X or 3.X  Apache Tomcat 7.X   JDK 1.6 or higher  We will show how to create the project from Eclipse IDE. From Eclipse File menu choose to create a New | Maven Project: In the next screen make sure that the option Create a Simple project (Skip archetype selection) is unchecked and select a Workspace for your project: Click Next. In the following screen choose an archetype for your project. There are plenty of available Maven archetype that are suitable for a Web application to be executed on Tomcat. We would suggest to use the maven-archetype-webapp that will create a startup skeleton for your Web projects: Finally in the last screen choose a GroupId for your project. Choose an ArtifactId that will match to the Eclipse project nam...