Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
Description
Issue Summary
Artifacts from private repositories are not download by Java Specs scan, this is because Bamboo does not use the maven repositories element added in Java Specs pom.xml file.
Steps to Reproduce
- Create multiple build plan Java Specs
- Use artifacts present in private maven repository
- Add repositories element to the Specs configuration pom.xml
- Trigger a spec scan
Expected Results
The custom artifacts are downloaded from the private maven repository pom.xml and Specs Scan is successful.
Actual Results
Specs Scan fails
19-Oct-2021 08:57:46 <pluginRepositories> 19-Oct-2021 08:57:46 <pluginRepository> 19-Oct-2021 08:57:46 <id>central</id> ... 19-Oct-2021 08:57:46 <url>http://repositories/</url> 19-Oct-2021 08:57:46 </pluginRepository> 19-Oct-2021 08:57:46 </pluginRepositories> ..... 19-Oct-2021 08:57:50 [INFO] BUILD FAILURE 19-Oct-2021 08:57:50 [INFO] ------------------------------------------------------------------------ 19-Oct-2021 08:57:50 [INFO] Total time: 2.153 s 19-Oct-2021 08:57:50 [INFO] ------------------------------------------------------------------------ 19-Oct-2021 08:57:50 [ERROR] Failed to execute goal on project bamboo-specs-generator: Could not resolve dependencies for project com.atlassian.bamboo:bamboo-specs-generator:jar:1.0.0: Could not find artifact artifact.name in central (http://repositories/) -> [Help 1]
Workaround
Add the repositories element to BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/bamboo-specs-pom.xml