title: How to build maven after importing an java spring project
body: <p>Hello i am new to java spring concepts . .so i downloaded a sample spring application and import that into eclipse ..i have read from spring tutorials either i have to install maven into eclipse to run spring projects ..</p>
  
  <p>so i have installed maven and add a maven dependency <em>pom.xml</em> file into project but i got error in java build path as missing spring framework..can any one help me out from here ..</p>
  
  <blockquote>
    <p>Blockquote</p>
  </blockquote>
  
  <p>Tell me how to add maven dependency for a imported java spring project</p>
  
  <p>MY program file</p>
  
  <pre><code>package java4s;
  
  import org.springframework.beans.factory.BeanFactory;
  import org.springframework.beans.factory.xml.XmlBeanFactory;
  import org.springframework.core.io.ClassPathResource;
  import org.springframework.core.io.Resource;
  
  public class ClientLogic {
  
      public static void main(String[] args)
      {
          Resource res = new ClassPathResource("spconfig.xml");
          BeanFactory factory = new XmlBeanFactory(res);
  
          Object o = factory.getBean("id1");
          WelcomeBean wb = (WelcomeBean)o;
  
          wb.show();
  
      }
  
  }
  
  
  &lt;!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
              "http://www.springframework.org/dtd/spring-beans-2.0.dtd"&gt;
  
  &lt;beans&gt;
    &lt;bean id="id1" class="java4s.WelcomeBean"&gt;
  
      &lt;property name="message" value="Welcome to spring" /&gt;
  
    &lt;/bean&gt;  
  &lt;/beans&gt;   
  </code></pre>
  
  <p>This is my file pom.xml</p>
  
  <pre><code>&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
  &gt; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  &gt; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  &gt; http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;  
  &gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;  
  &gt; &lt;groupId&gt;Spring-Hello-World&lt;/groupId&gt;  
  &gt; &lt;artifactId&gt;Spring-Hello-World&lt;/artifactId&gt;  
  &gt; &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;   &lt;dependencies&gt;    &lt;dependency&gt;
  &gt;           &lt;groupId&gt;com.force.sdk&lt;/groupId&gt;
  &gt;           &lt;artifactId&gt;force-springsecurity&lt;/artifactId&gt;
  &gt;           &lt;version&gt;22.0.9-BETA&lt;/version&gt;
  &gt;           &lt;type&gt;jar&lt;/type&gt;
  &gt;           &lt;scope&gt;compile&lt;/scope&gt;      &lt;/dependency&gt;   &lt;/dependencies&gt; &lt;/project&gt; &lt;dependency&gt;
  &gt; 
  &gt; &lt;/dependency&gt;
  </code></pre>
  
  <p>Further what kind of dependency i can add here..just now i have started working with springs </p>