Automatic Dependency Management with Maven

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

Example to configure Automatic Dependency Management with Maven

Solution

  1. Plan A master or main plan have the following pom.xml:

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>com.company.test</groupId>
    	<artifactId>test-producer</artifactId>
    	<version>1.1-SNAPSHOT</version>
    </project>

    The version need to be SNAPSHOT

  2. Plan B master or main plan have the following pom.xml:

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>com.atlassian.test</groupId>
    	<artifactId>test-consumer</artifactId>
    	<version>1.0-SNAPSHOT</version>
    	<dependencies>
    		<dependency>
    			<groupId>com.company.test</groupId>
    			<artifactId>test-producer</artifactId>
    			<version>1.1-SNAPSHOT</version>
    		</dependency>
    	</dependencies>
    </project>

    The version need to be SNAPSHOT

  3. Add Maven Dependency Processor task to both plans
  4. Enable the option Automatic Dependency Management at Plan Configuration > Dependencies in both plans
  5. Run builds in both master or main plans


DescriptionAutomatic Dependency Management with Maven
ProductBamboo
Last modified on Jul 27, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.