Giter Club home page Giter Club logo

unsigner-maven-plugin's Introduction

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 <Embed-Dependency/> 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

<plugin>
  <groupId>org.commonjava.maven.plugins</groupId>
  <artifactId>unsigner-maven-plugin</artifactId>
  <version>0.2</version>
  <executions>
    <execution>
      <id>unsign-jar</id>
      <goals>
        <goal>unsign</goal>
      </goals>
    </execution>
  </executions>
</plugin>

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:

<plugin>
  <groupId>org.commonjava.maven.plugins</groupId>
  <artifactId>unsigner-maven-plugin</artifactId>
  <configuration>
    <skip>true</skip>
  </configuration>
</plugin>

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:

<plugin>
  <groupId>org.commonjava.maven.plugins</groupId>
  <artifactId>unsigner-maven-plugin</artifactId>
  <configuration>
    <processAttachments>true</processAttachments>
  </configuration>
</plugin>

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

mvn -Dunsign.processAttachments=true ...

unsigner-maven-plugin's People

Contributors

jdcasey avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

rzymek netxms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.