Building an image using the Maven or Gradle plugin with a custom buildpack from an image causes an error if any file in the buildpack image has a path longer than 100 characters.

The configuration:

<project>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <image>
                        <buildpacks>
                            <buildpack>gcr.io/paketo-buildpacks/java-native-image:5.3.0</buildpack>
                        </buildpacks>
                    </image>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

results in:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.0-SNAPSHOT:build-image (default-cli) on project webflux-netty: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.5.0-SNAPSHOT:build-image failed: file name '/cnb/buildpacks/paketo-buildpacks_java-native-image/5.3.0/.git/logs/refs/heads/fix/remove-ca-certificates' is too long ( > 100 bytes) -> [Help 1]