Results 1 to 5 of 5

Thread: Dependency issue with "spring-security-parent-3.0.2.RELEASE.pom"

  1. #1
    Join Date
    Jun 2010
    Posts
    3

    Default Dependency issue with "spring-security-parent-3.0.2.RELEASE.pom"

    In "spring-security-parent-3.0.2.RELEASE.pom" I found:

    <properties>
    <spring.version>3.0.1.RELEASE</spring.version>
    </properties>

    This seems to be incorrect, so that I've to add the following to my maven dependencyManagement

    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-expression</artifactId>
    <version>3.0.2.RELEASE</version>
    </dependency>

    to avoid having "spring-expression-3.0.1.RELEASE.jar" and "spring-expression-3.0.2.RELEASE.jar" inside my WAR file.

    Am I right? Is it a bug inside the spring-security-parent-pom?

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

    Default

    Why would it be a bug... Spring security 3.0.2 has a spring 3.0.1 dependency... i don't see what is wrong with that...
    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
    Join Date
    Jun 2010
    Posts
    3

    Default

    Marten, thanks for your reply.

    Yes you're right, normally this wouldn't be a problem. But we've several webapps using shared 3rd-party JAR files which resides in a shared tomcat folder, i.e. the JARs are _not_ included in the WAR files. All webapps have a dependency to expression-3.0.2 except the one using spring-security (which leads into expression-3.0.1 dependency. And 2 different versions of the same JAR file seems not to be a good idea. Isn't it?

    Michael

  4. #4
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    Spring Security 3.0.2 was released on 19th February, at which point the latest Spring release was 3.0.1. Spring 3.0.2 wasn't released until April.

    Ultimately, it's up to you to manage your application dependencies and resolve any conflicts you might find. The Spring Security poms are just a statement of what the project dependencies are for a particular release.
    Spring - by Pivotal
    twitter @tekul

  5. #5
    Join Date
    Jun 2010
    Posts
    3

    Default

    Ah, ok. So it's not a bug and I've to adjust my dependencyManagement by myself like described above. Thanks for the explanation.

Posting Permissions

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