Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16825

[Java] Inclusion of a git.properties resource in Arrow JARs causes confusion in Spring Boot applications

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.0.0
    • 9.0.0
    • Java

    Description

      By default Spring Boot reads classpath:git.properties to get information about the Git repository of an application. However, Arrow JARs also include a resource called git.properties, and this can cause Spring Boot to read the information from one of the Arrow libraries instead of from the application. This was reported to Spring Boot as an issue, but the Spring Boot developers say that they cannot automatically distinguish the application Git properties from git.properties resources from dependencies.

      Would you consider omitting git.properties from Arrow JARs in future releases or will Spring Boot users that (directly or indirectly) use Arrow need to work around this by letting git-commit-id-plugin generate the application Git properties in an alternative location and configuring Spring Boot to read the information from that alternative location (spring.info.git.location)? Of course other libraries could also cause this issue, but Arrow is the first and only library that I've encountered so far that publishes JARs with a git.properties resource in them.

      It seems that the fact that Arrow JARs include git.properties resources also caused ARROW-6361.

      Attachments

        Issue Links

          Activity

            People

              dsusanibara David Dali Susanibar Arce
              breun Nils Breunese
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m