Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
spring-modules-cache dependencies Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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).

    Comment


    • #3
      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

      Comment


      • #4
        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!

        Comment


        • #5
          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.

          Comment


          • #6
            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

            Comment


            • #7
              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.

              Comment


              • #8
                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

                Comment


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

                  Comment


                  • #10
                    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.

                    Comment


                    • #11
                      I agree... Big time. I think I will avoid the spring-modules-cache until its sorted.
                      Think I'll just use Ehcache directly.

                      Comment


                      • #12
                        Originally posted by jweder View Post
                        I agree... Big time. I think I will avoid the spring-modules-cache until its sorted.
                        Think I'll just use Ehcache directly.
                        Same here; 0.8a still suffers from this issue, and 0.9 is not even published. I'll wait 'til this is sorted out and use EHCache directly until then.

                        Also fully agree with a poster above about the idea of splitting the provider-specific implementation in sub-modules.

                        Comment


                        • #13
                          spring-modules-cache dependencies 3 years on

                          There seems to be no resolution to this issue even today, 3 years after it has been posted.
                          Are spring-modules (especially cache) still active? Any plans to make a life a bit easier for people using maven?

                          Thanks,

                          Dan

                          Comment


                          • #14
                            Exclusions

                            In case someone else might find it useful, I am posting the full list of exclusions for cache module.

                            Code:
                            <dependency>
                              		<groupId>org.springmodules</groupId>
                              		<artifactId>spring-modules-cache</artifactId>
                              		<version>0.8a</version>
                              		 <exclusions>
                                                <exclusion>
                                                    <groupId>org.springframework</groupId>
                                                    <artifactId>spring</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>gigaspaces</groupId>
                                                    <artifactId>gigaspaces-ce</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jini</groupId>
                                                    <artifactId>jsk-lib</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jini</groupId>
                                                    <artifactId>jsk-platform</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jini</groupId>
                                                    <artifactId>mahalo</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jini</groupId>
                                                    <artifactId>reggie</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jini</groupId>
                                                    <artifactId>start</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jini</groupId>
                                                    <artifactId>boot</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jini</groupId>
                                                    <artifactId>webster</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>commons-attributes</groupId>
                                                    <artifactId>commons-attributes-api</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>commons-attributes</groupId>
                                                    <artifactId>commons-attributes-compiler</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>cglib</groupId>
                                                    <artifactId>cglib-nodep</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jboss</groupId>
                                                    <artifactId>javassist</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jboss</groupId>
                                                    <artifactId>jboss-cache</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jboss</groupId>
                                                    <artifactId>jboss-common</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jboss</groupId>
                                                    <artifactId>jboss-jmx</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jboss</groupId>
                                                    <artifactId>jboss-minimal</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jboss</groupId>
                                                    <artifactId>jboss-system</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jcs</groupId>
                                                    <artifactId>jcs</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>jgroups</groupId>
                                                    <artifactId>jgroups-all</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>geronimo-spec</groupId>
                                                    <artifactId>geronimo-spec-jta</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>xpp3</groupId>
                                                    <artifactId>xpp3_min</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>xjavadoc</groupId>
                                                    <artifactId>xjavadoc</artifactId>
                                                </exclusion>
                                                <exclusion>
                                                    <groupId>opensymphony</groupId>
                                                    <artifactId>oscache</artifactId>
                                                </exclusion>                    
                                                <exclusion>
                                                    <groupId>ehcache</groupId>
                                                    <artifactId>ehcache</artifactId>
                                                </exclusion>                     
                                            </exclusions>
                              	</dependency>

                            Comment


                            • #15
                              Bumping this issue

                              Dan - thanks, that was very helpful!

                              Spring guys - publishing the fixed pom for 0.9 would be very useful for many people out there using Maven. Building it the right way shouldn't be that costly. Willing to help if needed.

                              Comment

                              Working...
                              X