An open API service indexing awesome lists of open source software.

https://github.com/jdcasey/unsigner-maven-plugin

Lightweight Maven plugin for unsigning jars
https://github.com/jdcasey/unsigner-maven-plugin

Last synced: 3 months ago
JSON representation

Lightweight Maven plugin for unsigning jars

Awesome Lists containing this project

README

          

Jar Unsigner plugin for Apache Maven
------------------------------------

This is a very simple plugin whose only function is to strip signature files out of jars. In addition to the Maven plugin interface, it has a main class, to allow manual processing of jars. The plugin interface can process both the project's main artifact and its attached artifacts (when configured). This is particularly useful when aggregation of dependencies into a project's own jar inadvertently brings in signature files from the dependency. One notable case is in the Apache Felix `maven-bundle-plugin`, when the `` configuration is used and a dependency has been signed. When a signed dependency's signature files are included in your project's jar, those signature files will not include checksums for your own classes, which will render your artifact unusable.

Basic Usage
===========


org.commonjava.maven.plugins
unsigner-maven-plugin
0.2


unsign-jar

unsign



Skipping by Configuration
=========================

If you've configured the unsign plugin to run in a parent POM, and you need to disable this function for a given child project, you can provide the following configuration:


org.commonjava.maven.plugins
unsigner-maven-plugin

true

Skipping from the Command Line
==============================

On the other hand, if you need to skip unsigning from the command line (usually to help in debugging a build, **NOT** to be used as a permanent part of your build!), you can use the following:

mvn -Dunsign.skip=true ...

Processing Project Attachments
==============================

If you want to unsign your project's attached artifacts in addition to the main artifact, you can use the following plugin configuration:


org.commonjava.maven.plugins
unsigner-maven-plugin

true

Alternatively, for debugging purposes, you could use the command line parameter:

mvn -Dunsign.processAttachments=true ...