jcardsim
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.klinec</groupId> <artifactId>jcardsim</artifactId> <version>3.0.6.0</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"> <modelVersion>4.0.0</modelVersion> <groupId>com.klinec</groupId> <artifactId>jcardsim</artifactId> <name>Java Card Runtime Environment Simulator</name> <version>3.0.6.0</version> <description>jCardSim is open-source library contains implementation of Java Card API</description> <url>http://maven.apache.org</url> <developers> <developer> <name>jCardSim Team</name> <email>jcarsim@licelus.com</email> <organization>Licel Corporation</organization> </developer> </developers> <licenses> <license> <name>Apache 2</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <scm> <connection>scm:git:git@github.com:ph4r05/jcardsim.git</connection> <developerConnection>scm:git:git@github.com:ph4r05/jcardsim.git</developerConnection> <url>git@github.com:ph4r05/jcardsim.git</url> </scm> <organization> <name>Licel Corporation</name> <url>https://licelus.com</url> </organization> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> </configuration> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> <executions> <execution> <phase>initialize</phase> <goals> <goal>install-file</goal> </goals> <configuration> <groupId>oracle.javacard</groupId> <artifactId>api_classic</artifactId> <version>${jcApiVersion}</version> <packaging>jar</packaging> <file>${env.JC_CLASSIC_HOME}/lib/api_classic.jar</file> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> <executions> <execution> <phase>process-classes</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>oracle.javacard</groupId> <artifactId>api_classic</artifactId> <version>${jcApiVersion}</version> <type>jar</type> <overWrite>true</overWrite> <outputDirectory>${project.build.directory}/classes</outputDirectory> <includes>**/*.class</includes> <excludes>**/java/**/*.class</excludes> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.21.0</version> <configuration> <argLine>-noverify</argLine> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.4.0</version> <executions> <execution> <id>cardApi</id> <phase>process-classes</phase> <goals> <goal>java</goal> </goals> <configuration> <mainClass>com.licel.jcardsim.utils.JavaCardApiProcessor</mainClass> <arguments> <argument>${project.build.directory}/classes</argument> </arguments> </configuration> </execution> <execution> <id>pom</id> <phase>verify</phase> <goals> <goal>java</goal> </goals> <configuration> <mainClass>com.licel.jcardsim.utils.PomProcessor</mainClass> <arguments> <argument>${project.build.directory}</argument> </arguments> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven-javadoc-plugin.version}</version> <configuration> <links> <link>https://docs.oracle.com/javase/7/docs/api/</link> <link>https://docs.oracle.com/javase/7/docs/jre/api/security/smartcardio/spec/</link> </links> <author>false</author> <source>7</source> </configuration> </plugin> <plugin> <artifactId>maven-shade-plugin</artifactId> <version>3.2.4</version> <executions> <execution> <id>shade</id> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope> <minimizeJar>true</minimizeJar> <artifactSet> <includes> <include>org.bouncycastle:*</include> <include>com.esotericsoftware:*</include> <include>org.objenesis:*</include> </includes> <excludes> <exclude>java.io:*</exclude> <exclude>java.lang:*</exclude> <exclude>java.rmi:*</exclude> <exclude>oracle.javacard:*</exclude> <exclude>oracle.javacard:*:*:*</exclude> <exclude>*:api_classic</exclude> <exclude>oracle.javacard:api_classic</exclude> </excludes> </artifactSet> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> </configuration> </execution> <execution> <id>shade-for-android</id> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope> <artifactSet> <includes> <include>org.bouncycastle:*</include> <include>com.esotericsoftware:*</include> <include>org.objenesis:*</include> </includes> <excludes> <exclude>oracle.javacard:*</exclude> <exclude>oracle.javacard:*:*:*</exclude> <exclude>*:api_classic</exclude> <exclude>oracle.javacard:api_classic</exclude> </excludes> </artifactSet> <minimizeJar>true</minimizeJar> <shadedArtifactAttached>true</shadedArtifactAttached> <shadedClassifierName>android</shadedClassifierName> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> <exclude>java/**</exclude> <exclude>com/licel/jcardsim/smartcardio/*</exclude> <exclude>com/licel/jcardsim/remote/*</exclude> <exclude>com/licel/jcardsim/utils/APDUScriptTool*</exclude> <exclude>com/licel/jcardsim/io/JavaxSmartCardInterface*</exclude> <exclude>com/licel/jcardsim/io/CAD*</exclude> <exclude>javacard/framework/service/CardRemoteObject*</exclude> <exclude>javacard/framework/service/RMIService*</exclude> </excludes> </filter> </filters> </configuration> </execution> </executions> <configuration> <keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope> <minimizeJar>true</minimizeJar> <relocations> <relocation> <pattern>org.bouncycastle</pattern> <shadedPattern>com.licel.jcardsim.bouncycastle</shadedPattern> </relocation> <relocation> <pattern>com.esotericsoftware</pattern> <shadedPattern>com.licel.jcardsim.esotericsoftware</shadedPattern> </relocation> <relocation> <pattern>org.objenesis</pattern> <shadedPattern>com.licel.jcardsim.objenesis</shadedPattern> </relocation> </relocations> <artifactSet> <includes> <include>org.bouncycastle:*</include> <include>com.esotericsoftware:*</include> <include>org.objenesis:*</include> </includes> <excludes> <exclude>java.io:*</exclude> <exclude>java.lang:*</exclude> <exclude>java.rmi:*</exclude> <exclude>oracle.javacard:*</exclude> <exclude>oracle.javacard:*:*:*</exclude> <exclude>*:api_classic</exclude> <exclude>oracle.javacard:api_classic</exclude> </excludes> </artifactSet> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> </configuration> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <phase>integration-test</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <path> <file /> <file /> </path> <delete /> <mkdir /> <mkdir /> <mkdir /> <mkdir /> <unzip> <patternset> <exclude /> <exclude /> </patternset> </unzip> <path> <file /> <file /> </path> <copy> <fileset /> </copy> <replace> <include /> <replacetoken>org.bouncycastle.</replacetoken> </replace> <javac /> <copy> <fileset /> </copy> <echo>Testing shaded JAR: ${project.artifactId}-${project.version}-android.jar</echo> <junit> <jvmarg /> <classpath> <path /> <pathelement /> </classpath> <formatter /> <batchtest> <fileset> <include /> <exclude /> <exclude /> <exclude /> <exclude /> </fileset> </batchtest> </junit> </target> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.5.0</version> <scope>system</scope> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-junit</artifactId> <version>1.9.5</version> </dependency> </dependencies> </plugin> </plugins> </build> <profiles> <profile> <id>release</id> <build> <plugins> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.3</version> <extensions>true</extensions> <executions> <execution> <id>injected-nexus-deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </execution> </executions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> <plugin> <artifactId>maven-release-plugin</artifactId> <version>2.5</version> <configuration> <autoVersionSubmodules>true</autoVersionSubmodules> <useReleaseProfile>false</useReleaseProfile> <releaseProfiles>release</releaseProfiles> <goals>deploy</goals> </configuration> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven-javadoc-plugin.version}</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <author>false</author> <bottom>&nbsp;</bottom> <links> <link>https://docs.oracle.com/javase/7/docs/api/</link> <link>https://docs.oracle.com/javase/7/docs/jre/api/security/smartcardio/spec/</link> </links> <source>7</source> </configuration> </execution> </executions> <configuration> <author>false</author> <bottom>&nbsp;</bottom> </configuration> </plugin> <plugin> <artifactId>maven-jarsigner-plugin</artifactId> <version>1.3.2</version> </plugin> <plugin> <artifactId>maven-gpg-plugin</artifactId> <version>1.5</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.1</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>hamcrest-core</artifactId> <groupId>org.hamcrest</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>oracle.javacard</groupId> <artifactId>api_classic</artifactId> <version>3.0.5</version> <scope>provided</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.ow2.asm</groupId> <artifactId>asm-commons</artifactId> <version>7.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.ow2.asm</groupId> <artifactId>asm-tree</artifactId> <version>7.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.ow2.asm</groupId> <artifactId>asm-util</artifactId> <version>7.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.ow2.asm</groupId> <artifactId>asm-analysis</artifactId> <version>7.2</version> <scope>compile</scope> </dependency> </dependencies> <distributionManagement> <repository> <id>ossrh</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> <snapshotRepository> <id>ossrh</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> <properties> <java.version>1.7</java.version> <netbeans.hint.license>apache20</netbeans.hint.license> <ant.build.dir>${project.build.directory}/antrun/build</ant.build.dir> <jcApiVersion>3.0.5</jcApiVersion> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven-javadoc-plugin.version>2.10.1</maven-javadoc-plugin.version> <junit.version>4.13.1</junit.version> </properties> </project>