heroku / heroku/heroku-buildpack-java
Upgrade from v76 to v77 produce a strange error
- Dominant language
- Shell
- Stars
- 166
- Forks
- 426
- Avg merge
- 15h 27m
- Merged PRs (30d)
- 7
Description
I have a a gitlab autodevops build that ultimately uses heroku-buildpack-java and since v77 I have a strange error comming from maven when runnning the test stage:
> [INFO] Artifact com.company.common:commons-parent:pom:3.4.7.20250723 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [central (https://repo.maven.apache.org/maven2, default, releases)]
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [FATAL] Non-resolvable parent POM for com.company.project:project-batch:${revision}${changelist}: The following artifacts could not be resolved: com.company.common:commons-parent:pom:3.4.7.20250723 (present, but unavailable): com.company.common:commons-parent:pom:3.4.7.20250723 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 4, column 13
> @
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR] The project com.company.project:project-batch:${revision}${changelist} (/app/pom.xml) has 1 error
> [ERROR] Non-resolvable parent POM for com.company.project:project-batch:${revision}${changelist}: The following artifacts could not be resolved: com.company.common:commons-parent:pom:3.4.7.20250723 **(present, but unavailable)**: com.company.common:commons-parent:pom:3.4.7.20250723 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 4, column 13 -> [Help 2]
>
The pom was succesfully downloaded from our private gitlab repository:
> [INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/company/common/commons-parent/3.4.7.20250723/commons-parent-3.4.7.20250723.pom
> [INFO] Downloading from gitlab-maven: https://gitlab.company.com/api/v4/groups/4/-/packages/maven/com/company/common/commons-parent/3.4.7.20250723/commons-parent-3.4.7.20250723.pom
> [INFO] Downloaded from gitlab-maven: https://gitlab.company.com/api/v4/groups/4/-/packages/maven/com/company/common/commons-parent/3.4.7.20250723/commons-parent-3.4.7.20250723.pom (11 kB at 84 kB/s)
>
I reverted back to the v76 version of the buildpack and the test job finishes without errors.
BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-java.git#v76
How can I help resolving this issue ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.