Results 1 to 2 of 2

Thread: Spring Dependencies Deployment (2)

  1. #1
    Join Date
    Aug 2004
    Posts
    8

    Default Spring Dependencies Deployment (2)

    Hi there,

    a topic with the same name has been sent last year.

    I'd also like to propose a restructure of the lib/ folder,
    but in the opposite direction:

    would it be possible to introduce an addtional folder level
    between lib/ and the library name?

    That would make it much easier to automate the process
    of splitting the whole Spring Framework into the proposed
    modules and their individual dependencies!

    I've never heard of some of the jars before and since I only
    use core, aop, dao, jdbc and transaction, it's very hard for
    me to discover which jars can be safely omitted from the path.

    I think it would also be a good idea to emphasize which
    jars are really optional (like jdo-stuff, ibatis, ...):

    lib/core/jakarta/jakarta-commons-logging.jar
    lib/core/opt/log4j/log4j.jar

    What do you think?

    Cheers
    /Eike

  2. #2
    Join Date
    Aug 2004
    Location
    Germany, Magdeburg
    Posts
    279

    Default

    Well this wouldn't work that good I guess. Some libraries are needed for quite more then one sub-package. That's why I favour slicing the whole framework into sub-projects each being devoted for another main audience. I dont need web but I have to check which jar I can remove from the lib collection. I don't like unused libraries poluting a developing or production environment.

    But anyways. Maybe you can find a suitable dependency hierarchy.

    To check dependencies, this simple method may help you (takes about 5min).

    1. Just use an IDE (Eclipse for example). Import the whole src.

    2. Rip of the parts of code you dont need.

    3. Add all jars. The code should compile now meaning all dependencies are resolvable.

    4. Now copy the src to a new project

    5. As long as the new project does not fully compile, copy a missing jar from the first project to the second one. If you dont know where a dependency comes from - I dont know much of the jars either - just refer to the project with the full jars added and check where the dependency comes from.

    6. You are done. Takes you about 5 min and is only needed once you upgrade your spring version. Meaning wasting 5min every half a year / a year. We only upgrade the Spring version once we need a new feature.

    Maybe by doing this it would be possible to tie up dependencies + source for several target audiences (sub projects anyone? ). I dream of a zip I can download to do anything but no web no j2ee. That would make it more easy. I think the framework now utilizes 15MB of libs - I know only 5 MB of those. :-(


    Cheers,

    Martin (Kersten)

Similar Threads

  1. A Spring Class Loader?
    By azzoti in forum Architecture
    Replies: 8
    Last Post: May 7th, 2005, 04:02 AM
  2. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  3. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Spring Dependencies Deployment
    By Starman in forum Architecture
    Replies: 4
    Last Post: Sep 23rd, 2004, 07:56 AM

Posting Permissions

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