Skip to main content

Automated Pull Requests in Maven

The automated pull request feature supports POM files set to version using the 4.0.0 xmlns attribute. The pom version is present in the project tag inside the pom.xml file.

Example

<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.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

pom.xml files in the repository are searched however files in a src/test directory are ignored.

  • Component defined inside a <dependencies> element with an inline <version> element.

    <dependencies>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.9.9.3</version>
      </dependency>
    </dependencies>
  • Component defined inside a <dependencyManagement> element with an inline <version> element.

    <dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>com.fasterxml.jackson.core</groupId>
          <artifactId>jackson-databind</artifactId>
          <version>2.9.9.3</version>
        </dependency>
      </dependencies>
    </dependencyManagement>
  • Component defined inside either an <dependencies> element, or a <dependencyManagement> element, with the version defined via a variable in a <properties> section.

    <properties>                                                                                                                                                                                                 
      <jackson.version>2.9.9.3</jackson.version>
    </properties>                                                                                                                                                                                                 
    
    <dependencies>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>${jackson.version}</version>
      </dependency>
    </dependencies>