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 m
First of all you do not need Maven to run spring-java project. You can use maven but its not mandatory. For information on how to use maven visit:Maven Tutorias
well,for solution of your problem you must have install maven properly in eclipse.
first of all convert your spring project to maven project
by
Right click on project > Configure > Convert to Maven Project
after that
right click on the project
click on maven
than click on update dependencies
1) Maven >Update Dependencies
and than after right click on project first
2) Run As > Maven Clean
and after maven clean do maven install
3) Run As > Maven Install
at last clean and bulid your project.
hope it will help you
I'm new too and for what I can say you can use your pom.xml to add all the dependencies that you need. For example, if you need to add spring context, you can just write its name and version. Maven thinks of how to find and import it.
The syntax of the example is:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3-0</version>
</dependency>
For every dependence that you need, just write is groupId, artifactID and version, within the dependency
tag and maven will think of everything.
Hence you will have a list of these dependency tags in the pom.xml.
Moreover, don't forget Maven use its structure ;)
Firstly, in my opinion we have to do clarity on a few things. Spring is a modular application container that provides some functionality like DI, IoC, Security and Transactional Context. These functionalities help the developers to build different kind of application. Maven instead is a tool of project managment that allows to handle the the application life cycle, dependencies, reporting ecc. Then you are not obliged to use maven with spring, but its use helps in many cases. Then first to add spring dependency in your pom you have to undestand what spring's module you need. For this reason you have to try to understand what you are doing and update you question. Only after this step somebody can help you