Checksum Enforcer

Maven Enforcer custom rule to verify file checksums

Лицензия

Лицензия

Категории

Категории

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

Группа

ph.samson.maven
Идентификатор

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

checksum-enforcer-rule
Последняя версия

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

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Checksum Enforcer
Maven Enforcer custom rule to verify file checksums
Организация-разработчик

Организация-разработчик

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

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

https://github.com/esamson/checksum-enforcer-rule

Скачать checksum-enforcer-rule

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

<!-- https://jarcasting.com/artifacts/ph.samson.maven/checksum-enforcer-rule/ -->
<dependency>
    <groupId>ph.samson.maven</groupId>
    <artifactId>checksum-enforcer-rule</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/ph.samson.maven/checksum-enforcer-rule/
implementation 'ph.samson.maven:checksum-enforcer-rule:0.0.1'
// https://jarcasting.com/artifacts/ph.samson.maven/checksum-enforcer-rule/
implementation ("ph.samson.maven:checksum-enforcer-rule:0.0.1")
'ph.samson.maven:checksum-enforcer-rule:jar:0.0.1'
<dependency org="ph.samson.maven" name="checksum-enforcer-rule" rev="0.0.1">
  <artifact name="checksum-enforcer-rule" type="jar" />
</dependency>
@Grapes(
@Grab(group='ph.samson.maven', module='checksum-enforcer-rule', version='0.0.1')
)
libraryDependencies += "ph.samson.maven" % "checksum-enforcer-rule" % "0.0.1"
[ph.samson.maven/checksum-enforcer-rule "0.0.1"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.google.guava : guava jar 18.0
org.apache.maven.enforcer : enforcer-api jar 1.4

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

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

Maven Enforcer Checksum Rule

This is a custom rule for the maven-enforcer-plugin to verify the checksum of a file. To use in your project, add to your enforcer plugin configuration. For example, to ensure that you have the correct Oracle JDBC 12.1.0.2 jars:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-enforcer-plugin</artifactId>
    <version>1.4</version>
    <dependencies>
        <dependency>
            <groupId>ph.samson.maven</groupId>
            <artifactId>checksum-enforcer-rule</artifactId>
            <version>0.0.1</version>
        </dependency>
    </dependencies>
    <executions>
        <execution>
            <id>file-checksums</id>
            <goals>
                <goal>enforce</goal>
            </goals>
            <configuration>
                <rules>
                    <fileChecksum implementation="ph.samson.maven.enforcer.rule.checksum.FileChecksum">
                        <file>${oracle.dir}/ojdbc7.jar</file>
                        <checksum>7c9b5984b2c1e32e7c8cf3331df77f31e89e24c2</checksum>
                    </fileChecksum>
                    <fileChecksum implementation="ph.samson.maven.enforcer.rule.checksum.FileChecksum">
                        <file>${oracle.dir}/ucp.jar</file>
                        <checksum>ef4f2f99b07ee26673be62bbdccce78b0209042c</checksum>
                    </fileChecksum>
                </rules>
            </configuration>
        </execution>
    </executions>
</plugin>

By default, SHA1 is used. Set the type parameter to specify a different algorithm. Possible values are:

  • "crc32"
  • "crc32c"
  • "md5"
  • "sha1"
  • "sha256"
  • "sha512"

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

Версия
0.0.1