Bouncy castle encrypting using AES and RSA Error in pom.xml if u have got any error in the pom.xml to force updating the dependencies mvn -U clean install if it has worked that great if not try this Installing the dependencies in maven mvn install in the root directory of the project.