• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Determining which spring framework jars are needed

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:



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 like "fishing" or "guessing and checking." 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I recommend using the Spring Bundle Repository at http://www.springsource.com/repository/app/

Then do a search for the module you want to use, and there will be the exact maven dependency to add to your pom. With that dependency you need to add the Bundle repository to your list of repositories.

Mark
 
Ari King
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mark Spritzler wrote:
Then do a search for the module you want to use...
Mark



It seems I've been over-thinking this dependency issue; maven on its own handles most of my concerns and with the spring bundle repo, it's easy to find the exact pom dependency needed. Thanks!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic