Bamboo Java Specs scanning fails with "artifacts could not be resolved" error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Bamboo Java Specs scanning fails with an "artifacts could not be resolved
" error present in the <bamboo-home>/logs/atlassian-bamboo.log
file.
Environment
The solution has been validated in Bamboo 9.6 but may be applicable to other versions.
Diagnosis
The following error can be found in <bamboo-home>/logs/atlassian-bamboo.log
file during the Java Specs scanning execution:
1
[FATAL] Non-resolvable parent POM for com.atlassian.bamboo:bamboo-specs-generator:1.0.0: The following artifacts could not be resolved: com.atlassian.bamboo:bamboo-specs-parent:pom:9.6.2 (absent): com.atlassian.bamboo:bamboo-specs-parent:pom:9.6.2 was not found in https://repo.maven.apache.org/maven2 during a previous attempt.
Cause
This is caused by either an issue in the Maven cache or when Bamboo is not able to find the correct Specs version in the following repositories:
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs/
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-api/
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-archetype/
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-parent/
Solution
Verify if Bamboo version you are using is present in the following repositories:
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs/
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-api/
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-archetype/
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-parent/
In case you can find the Bamboo version you are using in the repositories above, proceed with the steps below:
Find your Bamboo home folder
Go to
<bamboo-home-folder>/.m2
and remove the repository folderScan the repository where the Java Specs is stored
In case you can't find the Bamboo version you are using in the repositories above, contact Atlassian Support.
Was this helpful?