All Downloads are FREE. Search and download functionalities are using the official Maven repository.

config.maven_lint_rules.xml Maven / Gradle / Ivy

Go to download

Generates a report of suspicious/inconsistent POM elements, and optionally fails the build if violations are found.

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
  xmlns:util="http://www.springframework.org/schema/util"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/util
    http://www.springframework.org/schema/util/spring-util-2.5.xsd">

  <bean id="VersionPropertiesMustNotUseHyphenRule" class="com.lewisd.maven.lint.rules.basic.VersionPropertiesMustUseDotVersionRule" />
  <bean id="VersionPropertiesMustUseProjectVersionRule" class="com.lewisd.maven.lint.rules.basic.VersionPropertiesMustUseProjectVersionRule" />
  <bean id="GroupArtifactVersionMustBeInCorrectOrderRule" class="com.lewisd.maven.lint.rules.basic.GroupArtifactVersionMustBeInCorrectOrderRule">
    <property name="projectElementOrder" ref="GroupArtifactVersionMustBeInCorrectOrderRule-projectElementOrder" />
    <property name="dependencyElementOrder" ref="GroupArtifactVersionMustBeInCorrectOrderRule-dependencyElementOrder" />
    <property name="pluginElementOrder" ref="GroupArtifactVersionMustBeInCorrectOrderRule-pluginElementOrder" />
  </bean>

  <util:list id="GroupArtifactVersionMustBeInCorrectOrderRule-projectElementOrder">
    <value>modelVersion</value>
    <value>parent</value>
    <value>groupId</value>
    <value>artifactId</value>
    <value>version</value>
    <value>packaging</value>
    <value>name</value>
  </util:list>

  <util:list id="GroupArtifactVersionMustBeInCorrectOrderRule-dependencyElementOrder">
    <value>groupId</value>
    <value>artifactId</value>
    <value>version</value>
    <value>classifier</value>
    <value>type</value>
    <value>scope</value>
  </util:list>

  <util:list id="GroupArtifactVersionMustBeInCorrectOrderRule-pluginElementOrder">
    <value>extensions</value>
    <value>groupId</value>
    <value>artifactId</value>
    <value>version</value>
  </util:list>

  <bean id="RedundantDependencyVersionsRule" class="com.lewisd.maven.lint.rules.basic.RedundantDependencyVersionsRule">
    <property name="excludedCoordinates" ref="RedundantDependencyVersionsRule-excludedCoordinates"/>
  </bean>

  <util:list id="RedundantDependencyVersionsRule-excludedCoordinates">
  </util:list>

  <bean id="RedundantPluginVersionsRule" class="com.lewisd.maven.lint.rules.basic.RedundantPluginVersionsRule">
    <property name="excludedCoordinates" ref="RedundantPluginVersionsRule-excludedCoordinates"/>
  </bean>

  <util:list id="RedundantPluginVersionsRule-excludedCoordinates">
    <value>org.eclipse.m2e:lifecycle-mapping</value> <!-- Leaving off the version on this out causes NPEs in Eclipse -->
  </util:list>


  <bean id="ProfileMustOnlyAddModulesRule" class="com.lewisd.maven.lint.rules.basic.ProfileMustOnlyAddModulesRule" />

  <bean id="DuplicateDependenciesRule" class="com.lewisd.maven.lint.rules.basic.DuplicateDependenciesRule" />

  <bean id="ExecutionIdRule" class="com.lewisd.maven.lint.rules.basic.ExecutionIdRule" />

  <bean id="OSSDevelopersSectionRule" class="com.lewisd.maven.lint.rules.opensource.MissingDeveloperInformationRule" />
  <bean id="OSSContinuousIntegrationManagementSectionRule" class="com.lewisd.maven.lint.rules.opensource.MissingCIManagementInformationRule" />    <bean id="OSSInceptionYearRule" class="com.lewisd.maven.lint.rules.opensource.MissingInceptionYearRule" />
  <bean id="OSSIssueManagementSectionRule" class="com.lewisd.maven.lint.rules.opensource.MissingIssueManagementInformationRule" />
  <bean id="OSSLicenseSectionRule" class="com.lewisd.maven.lint.rules.opensource.MissingLicenseRule" />
  <bean id="OSSUrlSectionRule" class="com.lewisd.maven.lint.rules.opensource.MissingUrlRule" />

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy