Yes, it is by design, though I have been able to trim down the dependencies considerably over what the plugin
adds just by adding only the dependencies I need in the POM
file. You can create a POM
file that packages dependencies by using either the apache shade
plugin or the maven assembly
plugin. From the AWS docs:
The build creates this resulting .jar, using information in the pom.xml to do the necessary transforms. This is a standalone .jar (.zip file) that includes all the dependencies. This is your deployment package that you can upload to AWS Lambda to create a Lambda function.
References:
Maven Deployment package and upload to AWS-Lambda
Creating a .jar Deployment Package Using Maven without any IDE (Java)