In a java project I would like to create a zip archive with a file under src/main/resources
and then include that zip in the generated jar artifact.
*The ZIP archive is an AWS lambda implementation used only in tests, hence I'd like to share it across multiple sub-projects with minimum effort.
The structure is:
.
├── src
│ └── main
│ └── resources
│ └── index.js
└── pom.xml
and I'd like the output to be:
.jar
└── function.zip
I've tried using the assembly plugin to generate the ZIP archive but then I couldn't figure out how I can add it in the JAR package. Is there a plugin that combines these actions in that order?