how to create maven based web application
I used Linux environment for developing my project but normally Linux doesn't have maven so we should install it. if you want how to install Maven in Linux please check this link. maven is a framework that was developed to java. if we use a java based web application, the application must run on Apache Tomcat server. do you have any clarification for tomcat server you can check whether this link also, there is few configurations step for running your maven web app on Apache Tomcat server, then we need to create the maven project by using below command.
mvn archetype:generate -DgroupId=apache.maven.com -DartifactId=my-web-app-1 -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
mvn archetype:generate -DgroupId=apache.maven.com -DartifactId=my-web-app-1 -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
- DartifactID is a name of the project.
- DarchetypeArtifactid defines project type such as web application or stand alone.
after creating maven project, you can see web app and java folder within the project. then you can create the .jsp file into the web app folder also you can create .java file into the java folder. If you have any clarification check the blow PATH and screenshot.
.../projectname/src/main
.../projectname/src/main
Lucky Club Online Casino Sites
ReplyDeleteLucky Club Online Casino Sites · Baccarat · Blackjack luckyclub · Craps · Roulette · Slots · Poker · Keno · Bingo.com · Poker.ag · Casino Bonuses.