I have developed a maven-based project (maven-3.3.9) using jboss-eap-6.4 in IntelliJIDEA 14.0. I am using bouncy castle
libraries and I have to set them as provided scope
in maven dependency.
- Where exactly should I put the bouncy castle jar files?
- What configuration should I set?
I have tried two options for the 1st question as follows:
- I put jar files here:
jboss-eap-6.4\modules\org\bouncycastle\main\
and
- I put jar files here:
jboss-eap-6.4\modules\system\layers\base\org\bouncycastle\main\
Also, I have provided the following configuration in module.xml
beside the jar files:
<?xml version=1.0" encoding=UTF-8"?>
<module xmlns="run:jboss:module:1.1" name="org.bouncycastle">
<resources>
<resource-root path="bcpkix-jdk15on-1.54.jar"/>
<resource-root path="bcprov-jdk15on-1.54.jar"/>
</resources>
<dependencies>
<module name="javax.api" slot="main" export="true"/>
</dependencies>
</module>
However, when I clean and install maven I get the following error:
- error during artifact deploment
- caused by java.lang.RunTimeException:...
- caused by java.lang.NoClassDefFoundError:...
- caused by java.lang.ClassNotFoundException:...