Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21513

Java Specs scan should recognize private maven repositories element in pom.xml

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Bamboo Specs
    • None
    • 0
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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

      1. Create multiple build plan Java Specs
      2. Use artifacts present in private maven repository
      3. Add repositories element to the Specs configuration pom.xml
      4. 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

            [BAM-21513] Java Specs scan should recognize private maven repositories element in pom.xml

            There are no comments yet on this issue.

              Unassigned Unassigned
              voseghale VICTOR-OSEGHALE (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: