Use Maven to build an integrated development environment for Struts2 + Spring3 + Hibernate4

Source: Internet
Author: User

Use Maven to build an integrated development environment for Struts2 + Spring3 + Hibernate4

After more than three years of JavaEE development, in normal JavaEE development, in order to be able to develop projects at the fastest speed, Struts2, SpringMVC, Spring, Hibernate, myBatis open-source frameworks for development projects. These frameworks are generally not used independently, it is often one of the combinations of Struts2 + Spring3 + Hibernate, SpringMVC + Spring + Hibernate, SpringMVC + Spring + Mybatis, that is, the combination of multiple frameworks. Today we will summarize how to use Maven to build an integrated development environment for Struts2 + Spring3 + Hibernate4.

Maven official guide _ Chinese full version clear PDF

Maven 3.1.0 release, Project Build Tool

Install Maven in Linux

Maven3.0 configuration and simple use

Set up sun-jdk and Maven2 in Ubuntu

Get started with Maven

1. Create a Maven Project

Step 1:

  

Step 2:

  

Step 3:

  

Shows the created Project:

  

Step 4:

  

Note: The JDK here should be set to the default one, so that when others are using the JDk, there will be no errors when JDK inconsistency occurs, as shown in:

  

Step 5:

Create a standard Maven directory
Src/main/java
Src/main/resources
Src/test/java
Src/test/resources

  

Step 6:

Release project: Maven install

Clear compiled projects: Maven clean

  

The Maven install command execution result is as follows:

  

OK. The Maven project is successfully created!

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.