How to create a Maven project with Hibernate and Struts 2.
I am 开发者_开发技巧hoping to use Eclipse as my IDE.
you could run the following and select project from the list
mvn archetype:generate
when you're done just change to the newly created project and run the following to have the eclipse project files created, then in eclipse file/import
mvn eclipse:eclipse
- get the m2eclipse plugin, and optionally - m2eclipse-wtp
- create a new maven project (from the New dialog). You can also "mavenize" existing projects, from the right-click menu > Maven.
- right click the pom.xml and add hibernate and struts dependencies
There are "Spring Template applications" in eclipse. Just start with one of them. Use STS rather than plain old eclipse, just fewer headaches.
Open the command prompt.
Customize following command and type in command prompt.
mvn archetype:generate -DgroupId=com.init -DartifactId=TestMavenProject
Please refer following link for more info.
https://howisolvedproblems.blogspot.com/2018/02/how-to-start-maven-project-from-scratch.html
精彩评论