Downloads of the OpenSC-JAVA project
PKCS11 provider
The release builds of the the PKCS11 provider are supplied in compiled form, because a JCE provider has to be cryptographically singed by a certificate kindly supplied to the OpenSC Project by Sun Microsystems Inc.
OpenSC-JAVA uses maven2 as it's build system, so you should use the maven repository
http://www.opensc-project.org/files/opensc-java/maven
by adding the following to your project's pom.xml file:
<?xml version="1.0" encoding="UTF-8"?><project>
<modelVersion>4.0.0</modelVersion>
...
<build>
...
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0-alpha-1-SNAPSHOT</version>
<executions>
<execution>
<!-- Unpack all JNI zip dependencies (e.g. from opensc-java) -->
<id>unpack-jni</id>
<phase>process-sources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<type>zip</type>
<excludeTypes>jar</excludeTypes>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Add JNI dependencies to java.library.path (e.g. from opensc-java) -->
<argLine>-Djava.library.path=${project.build.directory}/lib</argLine>
</configuration>
</plugin>
...
</plugins>
</build>
<repositories>
<repository>
<id>opensc-repo</id>
<name>opensc-project.org repository.</name>
<url>http://www.opensc-project.org/files/opensc-java/maven</url>
</repository>
...
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<name>Maven Plugin Snapshots</name>
<url>http://people.apache.org/maven-snapshot-repository</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
...
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.opensc</groupId>
<artifactId>opensc-PKCS11</artifactId>
<version>0.2.0</version>
</dependency>
...
</dependencies>
...
</project>
If you like to actively develop the PKCS#11 provider, you should head for the subversion repository as described in SvnHowTo.
