Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-606

Provided scope included in transitive dependency resolution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.4.6
    • 1.4.8
    • Dependency management
    • OS X Lion

      Java 1.6.0_26 (64 bit Hotspot)
      Ruby 1.9.2
      Jruby 1.6.3

    Description

      The provided scope is include when resolving dependencies.

      I found this bug while migrating one of our company Java projects from maven to buildr

      The project depends on org.springframework:spring-web:jar:3.0.5.RELEASE and other Spring artifacts and all its provided dependencies where been added to the compile classpath, this is not the same behavior as maven where those are excluded.

      Here is the print of the compile dependencies for the attached build file.

      ~/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar
      ~/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
      ~/.m2/repository/portlet-api/portlet-api/1.0/portlet-api-1.0.jar
      ~/.m2/repository/commons-digester/commons-digester/2.0/commons-digester-2.0.jar
      ~/.m2/repository/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar
      ~/.m2/repository/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar
      ~/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
      ~/.m2/repository/org/springframework/spring-core/3.0.5.RELEASE/spring-core-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-asm/3.0.5.RELEASE/spring-asm-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-context/3.0.5.RELEASE/spring-context-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-aop/3.0.5.RELEASE/spring-aop-3.0.5.RELEASE.jar
      ~/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      ~/.m2/repository/org/springframework/spring-beans/3.0.5.RELEASE/spring-beans-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-expression/3.0.5.RELEASE/spring-expression-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-aspects/3.0.5.RELEASE/spring-aspects-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-context-support/3.0.5.RELEASE/spring-context-support-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-test/3.0.5.RELEASE/spring-test-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-tx/3.0.5.RELEASE/spring-tx-3.0.5.RELEASE.jar
      ~/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar
      ~/.m2/repository/org/springframework/spring-jdbc/3.0.5.RELEASE/spring-jdbc-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-orm/3.0.5.RELEASE/spring-orm-3.0.5.RELEASE.jar
      ~/.m2/repository/org/springframework/spring-web/3.0.5.RELEASE/spring-web-3.0.5.RELEASE.jar
      ~/.m2/repository/javax/portlet/portlet-api/2.0/portlet-api-2.0.jar
      ~/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
      ~/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar
      ~/.m2/repository/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar
      ~/.m2/repository/activation/activation/1.0.2/activation-1.0.2.jar
      ~/.m2/repository/org/springframework/spring-webmvc/3.0.5.RELEASE/spring-webmvc-3.0.5.RELEASE.jar
      ~/.m2/repository/javax/el/el-api/1.0/el-api-1.0.jar
      ~/.m2/repository/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar
      ~/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar
      ~/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar

      Attachments

        1. buildfile
          2 kB
          Julio Arias
        2. 0001-Fixed-transitive-artifact-resolution-provided-should.patch
          2 kB
          Julio Arias

        Activity

          People

            pdonald Peter Donald
            jarias Julio Arias
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: