I\'m trying to use Java with AWS Lambda. I created a jar file with all dependencies (using maven-assembly-plugin). Upon uploading, I cannot call the lambda. I receive the error
I ran into this because a JAR packed with the Shade plugin generated both the file and directory META-INF\version\9
.
By excluding these files the JAR could be run again. The following is the configuration section for the maven-shade-plugin.
*:*
META-INF/*.SF
META-INF/*.DSA
META-INF/*.RSA
META-INF/versions/9
META-INF/versions/9/*