开发者

How to create a Maven project with Hibernate and Struts

开发者 https://www.devze.com 2023-04-01 10:17 出处:网络
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

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.


  1. Open the command prompt.

  2. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消