Change the name to index.html and click on finish. Right click on WebContent folder ->New ->HTML File. Thanks and happy coding! We hope you enjoyed this article. Give the project name as ' angularjs-demo ' and click finish button. If you're interested in learning more about the basics of Java, coding, and software development, check out our Coding Essentials Guidebook for Developers, where we cover the essential languages, concepts, and tools that you'll need to become a professional developer. In this tutorial, we provide a step-by-step guide on how to create a web project using Maven in Eclipse. Here we go, the structure of the generated project looks like the following:įinally deploy the web application on Tomcat, if you haven’t setup Tomcat in your eclipse, then follow this guide.Īfter the deployment, you would be able to access index.jsp through the following url: Then right click project -> Maven -> Update Project 7. In order to compile your project with Java 8, add the following property to pom.xml: Then just add the following dependency to pom.xml: The main package of the project is the concatenation of “Group Id” + “Artifact Id”Įclipse now generates a dynamic web project called “SimpleWebProject”, in case you face this error inside index.jsp: The superclass "" was not found on the Java Build Path index.jsp.“Artifact Id”: denotes the name of the web project.“Group Id”: denotes a unique “ dot” separated group name, which is used by external projects that link to yours, this field is normally set as the company name.In the final screen, fill the mandatory fields as the following: In the following screen, select “maven-archetype-webapp” then click “Next”: In the next screen, select the workspace of the project and keep the other options as default then click “Next”: Open eclipse, then select File -> New -> Maven Project.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |