Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: spring-modules-cache dependencies

  1. #1
    Join Date
    Aug 2006
    Posts
    2

    Default spring-modules-cache dependencies

    After I included spring-modules-cache dependency in my project's pom,

    <dependency>
    <groupId>org.springmodules</groupId>
    <artifactId>spring-modules-cache</artifactId>
    <version>0.6</version>
    </dependency>

    maven is unable to resolve following dependencies:

    1) gigaspaces:gigaspaces-ce:jar:5.1-1603-000
    2) jini:webster:jar:20060125
    3) jboss:jboss-jmx:jar:4.0.3
    4) xpp3:xpp3_min:jar:1.1.3.4.I
    5) jini:start:jar:2.1
    6) jboss:jboss-minimal:jar:4.0.3
    7) jini:reggie:jar:2.1
    8) jboss:jboss-cache:jar:1.2.4
    9) jcs:jcs:jar:1.2.6.5
    10) jboss:jboss-system:jar:4.0.3
    11) jini:jsk-platform:jar:2.1
    12) jboss:jboss-common:jar:4.0.3
    13) jini:mahalo:jar:2.1
    14) jini:jsk-lib:jar:2.1
    15) jini:boot:jar:20060125

    I'm not sure if I am supposed to use some other maven2 repository (apart central)?
    Or I have to provide all these dependencies manually?

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Most (if not all) of the dependencies you listen can't be found on ibiblio. Spring Modules provides them in the -with-dependencies distribution. There is also an ivy.xml file which contains URLs for downloading the jars (note that most of the URLs are not maven repositories).
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Aug 2006
    Posts
    14

    Default

    In the pom, would it be possible to mark the non-essential dependencies as <optional>true</optional>? For example, if my project only needs EhCache, I don't necessarily want to pull in JBossCache support (or vice versa). What are your thoughts?

    Thanks,
    Andy

  4. #4
    Join Date
    Nov 2007
    Posts
    1

    Question What is the minimal required dependencies to get declarative caching working with JCS

    Hi,

    First of all, like what this original post says, there are many dependencies that are missing from the maven repository. I suppose you support ivy, but not maven fully.

    But since I'm using maven, I want to figure out the right set of dependencies to do what I need. I want to be able to use declarative caching with JCS, so I want to exclude everything else. But I'm not 100% sure what I can exclude, so it'll be great if you can let me know what are the dependencies that I need for sure.

    Thank you very much!

  5. #5
    Join Date
    Apr 2008
    Posts
    7

    Default

    This is a PITA. I just had to explicitly exclude ~10 dependencies in my POM, for 0.8a. That's not right. These should be marked optional.

  6. #6
    Join Date
    Jan 2008
    Posts
    12

    Default

    Quote Originally Posted by nivancevic View Post
    After I included spring-modules-cache dependency in my project's pom,

    <dependency>
    <groupId>org.springmodules</groupId>
    <artifactId>spring-modules-cache</artifactId>
    <version>0.6</version>
    </dependency>

    maven is unable to resolve following dependencies:

    1) gigaspaces:gigaspaces-ce:jar:5.1-1603-000
    2) jini:webster:jar:20060125
    3) jboss:jboss-jmx:jar:4.0.3
    4) xpp3:xpp3_min:jar:1.1.3.4.I
    5) jini:start:jar:2.1
    6) jboss:jboss-minimal:jar:4.0.3
    7) jini:reggie:jar:2.1
    8) jboss:jboss-cache:jar:1.2.4
    9) jcs:jcs:jar:1.2.6.5
    10) jboss:jboss-system:jar:4.0.3
    11) jini:jsk-platform:jar:2.1
    12) jboss:jboss-common:jar:4.0.3
    13) jini:mahalo:jar:2.1
    14) jini:jsk-lib:jar:2.1
    15) jini:boot:jar:20060125

    I'm not sure if I am supposed to use some other maven2 repository (apart central)?
    Or I have to provide all these dependencies manually?
    I strongly believe that the Caching Module should be split up in the following manner.

    The core classes should be placed in a 'project' called cache-core (Or something else) followed by multiple providers. A provider would be something like ehcache, jboss, etc. This allows the end developer to select only the provider(s) he needs in his project without having to add multiple excludes. E.g.,

    <dependency>
    <groupId>org.springmodules.cache</groupId>
    <artifactId>cache-core</artifactId>
    <version>0.9</version>
    </dependency>
    <dependency>
    <groupId>org.springmodules.cache</groupId>
    <artifactId>ehcache-provider</artifactId>
    <version>0.9</version>
    </dependency>

    Is there any plan to do this for SpringModules? I'll be more than willing to submit a fix for this if Spring is willing to accept it.

    Best Regards,
    Richard L. Burton III

  7. #7
    Join Date
    Jan 2006
    Location
    italy
    Posts
    55

    Default

    Quote Originally Posted by rburton View Post
    I strongly believe that the Caching Module should be split up in the following manner.

    The core classes should be placed in a 'project' called cache-core (Or something else) followed by multiple providers. A provider would be something like ehcache, jboss, etc. This allows the end developer to select only the provider(s) he needs in his project without having to add multiple excludes. E.g.,

    <dependency>
    <groupId>org.springmodules.cache</groupId>
    <artifactId>cache-core</artifactId>
    <version>0.9</version>
    </dependency>
    <dependency>
    <groupId>org.springmodules.cache</groupId>
    <artifactId>ehcache-provider</artifactId>
    <version>0.9</version>
    </dependency>

    Is there any plan to do this for SpringModules? I'll be more than willing to submit a fix for this if Spring is willing to accept it.

    Best Regards,
    Richard L. Burton III
    i fully agree on your suggestion. too bad using springmodules with maven.
    Paolo Denti

  8. #8
    Join Date
    Jan 2006
    Location
    italy
    Posts
    55

    Default

    Quote Originally Posted by rburton View Post
    I strongly believe that the Caching Module should be split up in the following manner.

    The core classes should be placed in a 'project' called cache-core (Or something else) followed by multiple providers. A provider would be something like ehcache, jboss, etc. This allows the end developer to select only the provider(s) he needs in his project without having to add multiple excludes. E.g.,

    <dependency>
    <groupId>org.springmodules.cache</groupId>
    <artifactId>cache-core</artifactId>
    <version>0.9</version>
    </dependency>
    <dependency>
    <groupId>org.springmodules.cache</groupId>
    <artifactId>ehcache-provider</artifactId>
    <version>0.9</version>
    </dependency>

    Is there any plan to do this for SpringModules? I'll be more than willing to submit a fix for this if Spring is willing to accept it.

    Best Regards,
    Richard L. Burton III
    even better should be including in your pom
    <dependency>
    <groupId>org.springmodules.cache</groupId>
    <artifactId>ehcache-provider</artifactId>
    <version>0.9</version>
    </dependency>
    and the cache-core should be a dependency of ehcache-provider
    Paolo Denti

  9. #9
    Join Date
    Aug 2004
    Location
    Brooklyn, NY
    Posts
    20

    Default

    Was there any resolution to this? Not supporting maven is a huge problem.

  10. #10
    Join Date
    Oct 2007
    Posts
    11

    Default

    I agree, this is a huge pain. I'm not a Maven user, but use Ivy instead. Ideally, Spring's own Ivy repository would include Spring Modules (It amazes me that they don't even publish to their own repository), but a Maven repository somewhere would be fine, too, as I can load my Ivy repo from a public Maven repo.

    A huge part of the Spring community uses dependency mgmt tools like Maven and Ivy, so having to do it manually seems like an unnecessary step.

Posting Permissions

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