title: Jenkins gives access restriction for javax/smartcardio
body: <p>For a Java / OSGi project I need to communicate with a smartcard plugged to my computer. I do this using the package javax.smartcardio.</p>
  <p>When I first imported this package and wanted to use it, Eclipse anounced an error &quot;Access restriction: The type 'CommandAPDU' is not API&quot;. As proposed on <a href="https://www.javacardos.com/javacardforum/viewtopic.php?t=918" rel="nofollow noreferrer">https://www.javacardos.com/javacardforum/viewtopic.php?t=918</a>, I added an Accessibility Rule Pattern to the Build Path. After that, everything worked fine and I could use the package in my local environment.</p>
  <p>But now I wanted to pass the project to our continous integration system, which is Jenkins with Maven. I also committed the .classpath file. And there I get the same error:</p>
  <p><strong>[ERROR] import javax.smartcardio.CommandAPDU;</strong></p>
  <p><strong>[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</strong></p>
  <p><strong>[ERROR] Access restriction: The type 'CommandAPDU' is not API (restriction on classpath entry '/disc2/lunifera/server/jenkins/workspace/tools/hudson.model.JDK/JDK-8/jre/lib/rt.jar')</strong></p>
  <p>For some reason, the access rule does not seem to work on Jenkins. Does anybody know how to solve this problem? Thanks alot.</p>