Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 1.15 KB

README.md

File metadata and controls

42 lines (38 loc) · 1.15 KB

CI status

A maven enforcer rule validating all sub-modules of an aggregated project have the right parent defined.

Usage

...
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>1.1</version>
        <inherited>false</inherited>
        <dependencies>
          <dependency>
            <groupId>com.github.jeluard.parent-enforcer-rule</groupId>
            <artifactId>enforcer-rule</artifactId>
            <version>1.0.2</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <id>check</id>
            <phase>verify</phase>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireParentVersion implementation="com.github.jeluard.maven.ParentEnforcerRule" />
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
...

Released under Apache 2 license.