Javatpoint Logo

how to update local dependency?

By: fajarr*** On: Mon Feb 01 13:50:14 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
Hi, i have some problem when i wanna make a spring project.
in this project i should import some library and add it in dependency.
but i don't know how to do it?
for example, in my project i must import this following library:
-import org.springframework.beans.factory.BeanFactory;
-import org.springframework.beans.factory.xml.XmlBeanFactory;
-import org.springframework.core.io.*;

so i just put this dependency in my pom:
<dependency>
<groupId>org.springframework.beans.factory.BeanFactory</groupId>
<artifactId>bean-factory</artifactId>
<version>3.1.1</version>
</dependency>

i think when i run it, it will automatically download the dependency. but it isn't.
please tell me how to do right thing to get the dependency that i want from central repo..

(soory for my bad english)
note:i already try with mvn install -U but it's build failure
Up0Down