Results 1 to 3 of 3

Thread: Determining which spring framework jars are needed

  1. #1
    Join Date
    Dec 2009
    Posts
    22

    Question Determining which spring framework jars are needed

    How can I systematically determine which jars I'll need, and thus should include in my pom.xml file (I'm using maven as my project management tool)?

    When learning spring, to keep things simple and as recommended by the book, I added all the jars (even the ones I never used) to the classpath.

    Right now for the most part, I'm looking at the spring context configuration file to determine which jars to include. For example, I know in my spring configuration file, I have:

    <tx:annotation-driven />
    <context:annotation-config />
    <aop:aspectj-autoproxy />

    So, I know I'll need: spring-beans.x.x.x.jar, spring-context-x.x.x.jar, spring-tx-x.x.x.jar, spring-aop-x.x.x.jar
    Also, since this is a web app and I'll be using the ContextLoaderListener, I'll need: spring-web.x.x.x.jar

    The method I'm currently using (as described above) feels haphazard. Anyone use or know of a better way? Or at least documentation that explains the purpose/use of each jar in the spring framework?

    Thanks.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    THe best way is to use maven or ant/ivy to manage the dependencies, saves you a lot of headaches and searches.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    I think it is a valid question/concern and if you read the post abking IS using Maven.

    It is not always clear what dependencies to include when you are using specific functionality.

    F.e. I still don't know what Maven dependency to include so I can start using @Async (see also my post at http://forum.springsource.org/showthread.php?t=88160).

    Nes

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •