Illep
Illep

Reputation: 16851

How to create a Maven project with Hibernate and Struts

How to create a Maven project with Hibernate and Struts 2.

I am hoping to use Eclipse as my IDE.

Upvotes: 2

Views: 1488

Answers (4)

NMR
NMR

Reputation: 1

  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

Upvotes: 0

Ali
Ali

Reputation: 12674

There are "Spring Template applications" in eclipse. Just start with one of them. Use STS rather than plain old eclipse, just fewer headaches.

Upvotes: 2

user481572
user481572

Reputation:

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

Upvotes: 2

Bozho
Bozho

Reputation: 597116

  • 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

Upvotes: 2

Related Questions