Automatic Dependency Management with Maven
目的
Example to configure Automatic Dependency Management with Maven
ソリューション
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
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
- Add Maven Dependency Processor task to both plans
- Enable the option Automatic Dependency Management at
Plan Configuration > Dependencies
in both plans - Run builds in both master or main plans
最終更新日 2020 年 7 月 27 日
Powered by Confluence and Scroll Viewport.