Reputation: 426
We have a legacy Java project we might run as an AWS lambda function. However, this project does not use Maven, and we are not very interested (read: hard pass) in adding Maven to it, in any form. (We do not use Java for new projects, and have no desire to add complexities.)
Is there a way to run a Java project in lambda without using Maven?
Upvotes: 1
Views: 423
Reputation: 3411
I would still suggest to use a tool like Maven or Gradle to manage all dependencies. If you really insist, you can package the ZIP file containing all class files in the root of the ZIP, and all required libraries in folder called 'lib' in the ZIP file:
Main.class
Another.class
lib/
mysql.jar
otherlib.jar
You can upload this ZIP to the AWS console. For more information see https://docs.aws.amazon.com/lambda/latest/dg/java-package.html
Upvotes: 2