Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
show-titlefalse
titleSummary
Code Block
de.smartics.maven.enforcer.rule.NoSnapshotsInDependencyManagementRule

The following properties are supported:

Display Table
doctypeproperty
render-no-hits-as-blanktrue
selectIdentifier+|, Since|, Short Description, Default Value|
restrict-to-immediate-childrentrue
sort-bySort Key, Name
header-translationsIdentifier=ID, Short Description=Description, Default Value=Default

Section
titleUsage Example

The following configuration shows the rule properties set to the default values.

Code Block Placeholder
code-languageHTML and XML
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-enforcer-plugin</artifactId>
  <version>${maven-enforcer-plugin.version}</version>
  <executions>
    <execution>
      <id>enforce-project-rules</id>
      <phase>test</phase>
      <goals>
        <goal>enforce</goal>
      </goals>
      <configuration>
        <rules>
          <NoSnapshotDependenciesInDependencyManagementRule
            implementation="de.smartics.maven.enforcer.rule.NoSnapshotsInDependencyManagementRule">
            <onlyWhenRelease>true</onlyWhenRelease>
            <checkOnlyResolvedDependencies>false</checkOnlyResolvedDependencies>
          </NoSnapshotDependenciesInDependencyManagementRule>
        </rules>
	  </configuration>
    </execution>
  </executions>
  <dependencies>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>${project.artifactId}</artifactId>
      <version>${project.version}</version>
    </dependency>
  </dependencies>
</plugin>
Section
titlePrerequisites

Section
titleSubordinate Topics
Display Table
doctypetopic
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name

...