Configuring the Development Environment
Overview
In this chapter we will do the project setup which will be required throughout this series. We will be creating a Maven project with minimum dependencies added to the pom.xml for getting Spring up and running. In Future chapters further dependencies will be added to the pom.xml as and when required.Lets Begin
For this series we will be using 1. Eclipse IDE(Luna)We will be creating a Maven Project.Open the Eclipse IDE. 1. Go to File->new->other->Maven Project.Click Next Button.
![final_basic1-1 final_basic1-1](static/final_basic1-1.jpg)
![final_basic1-2 final_basic1-2](static/final_basic1-2.jpg)
If not already selected, select Use default Workspace Location, select Create a Simple Project
Click Next Button.
![final_basic1-3 final_basic1-3](static/final_basic1-3.jpg)
4. Enter the values for Group Id as com.javainuse and Artifact Id as employee-management-system.
![final_basic1-4 final_basic1-4](static/final_basic1-4.jpg)
5. Click Finish.
Our Maven Web Project is now created. We will now modify the pom.xml file to add dependencies required for Spring. Currently we have only added the dependency spring-context, other dependencies will be added later as required. After modification our pom.xml file is as follows-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.javainuse</groupId> <artifactId>employee-management-system</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.0.5.RELEASE</version> </dependency> </dependencies> </project>Now run the following Maven command. 1. clean:install - This will download the dependencies required and build the war file. So our Eclipse is now configured. Eclipse project structure at the end of this chapter is as follows-
![final_basic1-5 final_basic1-5](static/final_basic1-5.jpg)
Download Source Code
Download it - Employee Management SystemWhat Next?
In the next chapter will implement Employee Management System using Traditional Approach.