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
- Host: GitHub
- URL: https://github.com/jdcasey/unsigner-maven-plugin
- Owner: jdcasey
- Created: 2012-03-07T15:59:28.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-07T20:42:10.000Z (over 14 years ago)
- Last Synced: 2026-03-11T22:59:09.656Z (4 months ago)
- Language: Java
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-2.0.html
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 ...