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

XMLWordPrintable

    • 0
    • 1

      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

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

              Created:
              Updated: