# Packaging java dependencies for deployment

**URL:** <https://forum.serverless.com/t/packaging-java-dependencies-for-deployment/1156>\
**Category:** Serverless Framework\
**Created:** [January 20, 2017, 8:47pm UTC](https://forum.serverless.com/t/packaging-java-dependencies-for-deployment/1156 "2017-01-20T20:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepu.sundar](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@deepu.sundar](https://forum.serverless.com/u/deepu.sundar)\
**Post date:** [January 20, 2017, 8:47pm UTC](https://forum.serverless.com/t/packaging-java-dependencies-for-deployment/1156/1 "2017-01-20T20:47:16Z")

</div>

I am developing a simpla lambda function in Java and deploy using serverless. I have a plugin dependency for aws-alerts plugin. Everything works in node and I can download the dependencies using npm.

What is the corresponding dependency configuration for Java for this plugin ( I guess it should be in the maven pom file). Now I am getting the below error -

Error: Cannot find module 'serverless-plugin-aws-alerts’  
at Function.Module.\_resolveFilename (module.js:325:15)  
at Function.Module.\_load (module.js:276:25)  
at Module.require (module.js:353:17)  
at require (internal/module.js:12:17)

Any thoughts ?

regards,  
Deepu
