![]() This project follows the standard Maven directory layout you mention, with /src/main/java/, /src/test/java, etc. If we create a project with this archetype then a simple directory structure and pom.xml are generated. WAR and EAR files are JAR files with a specific structure that can be deployed in an application server or servlet container.Īs mentioned, the easiest way to set up a Maven project for web applications is to use archetypes: mvn archetype:generate -DarchetypeArtifactId=maven-archetype-webapp When you are creating a Java web project, the final product should be a WAR or EAR file. How do I create a java web project with servlets jsp and other classes with maven? It creates a simple directory structure, src->main->java. Creating a Web application project with Maven ![]() ![]() I admit that setting up a webapp project with Maven and Eclipse can be tricky, so I'll try to answer them all. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |