pomlint-maven-plugin Maven Mojo

The pomlint mojo helps enforcing a certain style in Maven projects. This is particular useful in a multi-module project maintained by large teams of developers. Often best practices are ignored when the project becomes busy. This leads to pom structures that are hard to maintain and thus degrade the projects agility. By having a linter enforce the rules upfront many of the simple mistakes can be avoided.

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

dk.kyuff.pomlint
Идентификатор

Идентификатор

pomlint-maven-plugin
Последняя версия

Последняя версия

1.1
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

pomlint-maven-plugin Maven Mojo
The pomlint mojo helps enforcing a certain style in Maven projects. This is particular useful in a multi-module project maintained by large teams of developers. Often best practices are ignored when the project becomes busy. This leads to pom structures that are hard to maintain and thus degrade the projects agility. By having a linter enforce the rules upfront many of the simple mistakes can be avoided.
Ссылка на сайт

Ссылка на сайт

http://maven.apache.org
Система контроля версий

Система контроля версий

https://github.com/kyuff/pomlint-maven-plugin

Скачать pomlint-maven-plugin

Как подключить последнюю версию

<plugin>
    <groupId>dk.kyuff.pomlint</groupId>
    <artifactId>pomlint-maven-plugin</artifactId>
    <version>1.1</version>
</plugin>

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 3.0
org.apache.maven : maven-core jar 3.0
org.apache.maven : maven-model jar 3.0

provided (1)

Идентификатор библиотеки Тип Версия
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (4)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
org.apache.maven.shared : maven-verifier jar 1.6
org.mockito : mockito-all jar 1.10.19

Модули Проекта

Данный проект не имеет модулей.

pomlint-maven-plugin

This is a Maven module that have the goal to catch common errors in POM files of large Maven projects.

It does this by binding to the validate phase and verifying some simple rules have not been violated.

These rules are opinionated and based on experience with large projects.

Usage

Add the following to your root pom file:

    <build>
        <plugins>
            <plugin>
                <groupId>dk.kyuff.pomlint</groupId>
                <artifactId>pomlint-maven-plugin</artifactId>
                <version>${pomlint.version}</version>
                <executions>
                    <execution>
                        <id>lint</id>
                        <goals>
                            <goal>lint</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

Rules

Currently pomlint-maven-plugin supports four different rules:

  1. Empty Description TODO Descriptions needs to be specified.

  2. Inherent Dependency TODO No inherent dependencies.

  3. Mixed Property Names TODO No mixing property names!

  4. Test Scope Out Of Order TODO Test scopes should be at the end.

  5. Module Name TODO Module names must match the artifactId

Версии библиотеки

Версия
1.1
1.0