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: