jsign
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>net.jsign</groupId> <artifactId>jsign</artifactId> <version>4.2</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <artifactId>jsign-parent</artifactId> <groupId>net.jsign</groupId> <version>4.2</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>net.jsign</groupId> <artifactId>jsign</artifactId> <name>Jsign - Authenticode implementation in Java (Distribution)</name> <version>4.2</version> <build> <plugins> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>3.3.2</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <includeDependencySources>true</includeDependencySources> <dependencySourceExcludes> <dependencySourceExclude>net.jsign:jsign-cli</dependencySourceExclude> <dependencySourceExclude>net.jsign:jsign-ant</dependencySourceExclude> </dependencySourceExcludes> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.7</version> <executions> <execution> <id>jacoco-report</id> <phase>site</phase> <goals> <goal>report-aggregate</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-shade-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <minimizeJar>true</minimizeJar> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/**</exclude> <exclude>**/*_de.properties</exclude> <exclude>**/MavenShadePluginHelper.*</exclude> <exclude>**/commons/codec/language/**</exclude> <exclude>**/commons/math3/random/**</exclude> <exclude>**/poi/ss/formula/**</exclude> <exclude>**/poi/sl/draw/geom/**</exclude> <exclude>font_metrics.properties</exclude> <exclude>assets/org/apache/commons/math3/**</exclude> </excludes> </filter> </filters> <relocations> <relocation> <pattern>org.bouncycastle</pattern> <shadedPattern>net.jsign.bouncycastle</shadedPattern> </relocation> <relocation> <pattern>org.apache.commons</pattern> <shadedPattern>net.jsign.commons</shadedPattern> </relocation> <relocation> <pattern>org.apache.logging.log4j</pattern> <shadedPattern>net.jsign.log4j</shadedPattern> </relocation> <relocation> <pattern>org.apache.poi</pattern> <shadedPattern>net.jsign.poi</shadedPattern> </relocation> <relocation> <pattern>com.cedarsoftware</pattern> <shadedPattern>net.jsign.json-io</shadedPattern> </relocation> </relocations> <transformers> <transformer> <mainClass>net.jsign.JsignCLI</mainClass> </transformer> </transformers> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.github.wvengen</groupId> <artifactId>proguard-maven-plugin</artifactId> <version>2.5.3</version> <executions> <execution> <id>proguard-minimizing</id> <phase>package</phase> <goals> <goal>proguard</goal> </goals> <configuration> <obfuscate>false</obfuscate> <options> <option>-dontwarn</option> <option>-dontnote **</option> <option>-dontoptimize</option> <option>-keep public class net.jsign.* { *; }</option> <option>-keep public class net.jsign.asn1.authenticode.* { *; }</option> <option>-keep public class net.jsign.asn1.authenticode.* { *; }</option> <option>-keep public class net.jsign.jca.* { *; }</option> <option>-keep public class net.jsign.msi.* { *; }</option> <option>-keep public class net.jsign.pe.* { *; }</option> <option>-keep public class net.jsign.script.* { *; }</option> <option>-keep public class net.jsign.timestamp.* { *; }</option> <option>-keeppackagenames net.jsign</option> <option>-keepclassmembers class * extends java.lang.Enum { *; }</option> </options> <injar>${project.build.finalName}.jar</injar> <includeDependency>false</includeDependency> <libs> <lib>${proguard.bootclasspath}</lib> </libs> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.github.siom79.japicmp</groupId> <artifactId>japicmp-maven-plugin</artifactId> <version>0.15.7</version> <executions> <execution> <phase>package</phase> <goals> <goal>cmp</goal> </goals> </execution> </executions> <configuration> <parameter> <onlyModified>true</onlyModified> <onlyBinaryIncompatible>true</onlyBinaryIncompatible> <includeSynthetic>true</includeSynthetic> <breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications> <breakBuildOnSourceIncompatibleModifications>true</breakBuildOnSourceIncompatibleModifications> <excludes> <exclude>net.jsign.asn1.*</exclude> <exclude>net.jsign.bouncycastle.*</exclude> <exclude>net.jsign.poi.*</exclude> <exclude>net.jsign.commons.*</exclude> <exclude>net.jsign.log4j.*</exclude> <exclude>net.jsign.PESigner</exclude> <exclude>net.jsign.PESignerCLI</exclude> </excludes> <ignoreMissingClassesByRegularExpressions> <ignoreMissingClassesByRegularExpression>org.apache.tools.ant.*</ignoreMissingClassesByRegularExpression> </ignoreMissingClassesByRegularExpressions> <skipXmlReport>true</skipXmlReport> <skipDiffReport>true</skipDiffReport> <overrideCompatibilityChangeParameters> <overrideCompatibilityChangeParameter> <compatibilityChange>METHOD_NEW_DEFAULT</compatibilityChange> <binaryCompatible>true</binaryCompatible> <sourceCompatible>true</sourceCompatible> </overrideCompatibilityChangeParameter> <overrideCompatibilityChangeParameter> <compatibilityChange>METHOD_ABSTRACT_NOW_DEFAULT</compatibilityChange> <binaryCompatible>true</binaryCompatible> <sourceCompatible>true</sourceCompatible> </overrideCompatibilityChangeParameter> </overrideCompatibilityChangeParameters> </parameter> </configuration> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>replace-version</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <mkdir /> <copy> <fileset /> <filterset> <filter /> </filterset> </copy> </target> </configuration> </execution> <execution> <id>make-rpm</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <taskdef /> <redline> <tarfileset /> <tarfileset> <include /> </tarfileset> <depends /> </redline> </target> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.redline-rpm</groupId> <artifactId>redline</artifactId> <version>1.1.12</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.vafer</groupId> <artifactId>jdeb</artifactId> <version>1.10</version> <executions> <execution> <phase>package</phase> <goals> <goal>jdeb</goal> </goals> <configuration> <attach>false</attach> <dataSet> <data> <type>file</type> <src>${project.build.directory}/${project.build.finalName}.jar</src> <mapper> <type>perm</type> <prefix>/usr/share/jsign</prefix> </mapper> </data> <data> <type>directory</type> <src>${project.build.directory}/deb/data</src> </data> </dataSet> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>proguard-bootclasspath-pre-java9</id> <properties> <proguard.bootclasspath>${java.home}/lib/rt.jar</proguard.bootclasspath> </properties> </profile> <profile> <id>proguard-bootclasspath-post-java9</id> <properties> <proguard.bootclasspath>${java.home}/jmods/java.base.jmod</proguard.bootclasspath> </properties> </profile> </profiles> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>hamcrest-core</artifactId> <groupId>org.hamcrest</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.10.19</version> <scope>test</scope> </dependency> </dependencies> </project>