If the argument archetypeArtifactId is missing, Apache Maven uses the maven-archetype-quickstart template by default. We create a new Java web application project, using the maven-archetype-webapp template. Using the command $ mvn archetype:generate -DgroupId= -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false For more information about Maven Archetype, click here.įirst of all, using the terminal (Linux or Mac) or the command prompt (Windows), navigate to the folder where the new project shall be created. Create a Java Project using Maven’s ArchetypeĪrchetype is a Maven project templating toolkit that enables the creation of Maven project templates for users. In this example, we use the following tools on a Windows 7 platform:įor this example, we assume that Apache Tomcat is installed in the folder “C:\tomcat”. The web application will make use of the Spring MVC and it will be transformed, in order to be recognizable and supported by the Eclipse IDE. In this tutorial, we will show you an easy way to create a Java web application project, using Apache Maven.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |