How to Set it?
Modify Pom. xml
Add jar dependency
<Dependencies>
<! -- Start -->
<Dependency>
<Groupid> org. springframework </groupid>
<Artifactid> spring-Web </artifactid>
<Version >$ {spring. Version} </version>
<Scope> compile </scope>
</Dependency>
<Dependency>
<Groupid> org. springframework </groupid>
<Artifactid> spring-AOP </artifactid>
<Version >$ {spring. Version} </version>
</Dependency>
<! -- End -->
<! -- Struts2 supports start -->
<Dependency>
<Groupid> org. Apache. Struts </groupid>
<Artifactid> struts2-spring-plugin </artifactid>
<Version >$ {struts2.version} </version>
<Scope> compile </scope>
</Dependency>
<Dependency>
<Groupid> org. Apache. Struts </groupid>
<Artifactid> struts2-core </artifactid>
<Version >$ {struts2.version} </version>
<Scope> compile </scope>
</Dependency>
<! -- Support end of struts2 -->
<! -- Use hibernate start on the persistent layer -->
<Dependency>
<Groupid> org. hibernate </groupid>
<Artifactid> hibernate-core </artifactid>
<Version >$ {hibernate. Version} </version>
</Dependency>
<Dependency>
<Groupid> org. hibernate </groupid>
<Artifactid> hibernate-ehcache </artifactid>
<Version >$ {hibernate. Version} </version>
</Dependency>
<Dependency>
<Groupid> org. springframework </groupid>
<Artifactid> spring-ORM </artifactid>
<Version >$ {spring. Version} </version>
</Dependency>
<Dependency>
<Groupid> commons-DBCP </groupid>
<Artifactid> commons-DBCP </artifactid>
<Version> 1.4 </version>
<Exclusions>
<Exclusion>
<Groupid> xerces </groupid>
<Artifactid> xerces </artifactid>
</Exclusion>
</Exclusions>
</Dependency>
<! -- Use hibernate end for the persistent layer -->
........
</Dependencies>
Run Maven install
After completion, the relevant jar is introduced from the local repository. m2