Skip to content

Commit 7b67604

Browse files
committed
Readme
1 parent e02ccc2 commit 7b67604

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
Message Digest Assembly Handler
2+
===================
3+
4+
[![Build Status](https://travis-ci.org/sfuhrm/message-digest-assembly-handler.svg)](https://travis-ci.org/sfuhrm/message-digest-assembly-handler)
5+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.sfuhrm/message-digest-assembly-handler/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.sfuhrm/message-digest-assembly-handler)
6+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
7+
[![ReleaseDate](https://img.shields.io/github/release-date/sfuhrm/message-digest-assembly-handler)](https://github.com/sfuhrm/message-digest-assembly-handler/releases)
8+
9+
This is a Plugin for the [Maven Assembly Plugin](http://maven.apache.org/plugins/maven-assembly-plugin/) that calculates
10+
Message Digests for the files archived. A possible outcome is a 'MD5SUM' file or 'SHA256SUM' file.
11+
12+
### Requirements
13+
14+
The message-digest-assembly-handler requires at least the following environment:
15+
* JDK 8 and later
16+
* Maven-Assembly-Plugin 3.2.0 and later
17+
18+
### Usage
19+
20+
You need to add the handler to your `pom.xml` and your assembly descriptor file.
21+
Examples are shown in the next subsections.
22+
23+
#### In your POM
24+
25+
In your `pom.xml`, add the `message-digest-assembly-handler` as a dependency to your `maven-assembly-plugin` plugin as described below.
26+
27+
```xml
28+
<plugin>
29+
<groupId>org.apache.maven.plugins</groupId>
30+
<artifactId>maven-assembly-plugin</artifactId>
31+
<version>3.2.0</version>
32+
<dependencies>
33+
<dependency>
34+
<groupId>de.sfuhrm</groupId>
35+
<artifactId>message-digest-assembly-handler</artifactId>
36+
<version>0.9.1</version>
37+
</dependency>
38+
</dependencies>
39+
</plugin>
40+
```
41+
42+
#### In your assembly descriptor
43+
44+
In your XML assembly descriptor, add one or more `containerDescriptorHandler` elements:
45+
46+
```xml
47+
<?xml version="1.0"?>
48+
<assembly>
49+
<id>my-id</id>
50+
<formats>
51+
<format>jar</format>
52+
</formats>
53+
<containerDescriptorHandlers>
54+
<containerDescriptorHandler>
55+
<handlerName>message-digest</handlerName>
56+
<configuration>
57+
<messageDigest>MD5</messageDigest>
58+
<checksumFile>MD5SUM</checksumFile>
59+
</configuration>
60+
</containerDescriptorHandler>
61+
</containerDescriptorHandlers>
62+
```xml

0 commit comments

Comments
 (0)