Skip to content

A maven enforcer rule to validate parent definition

License

Notifications You must be signed in to change notification settings

jeluard/parent-enforcer-rule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A maven enforcer rule to validate parent definition

Resources

License

Stars

Watchers

Forks

Packages

No packages published