April 2018
Intermediate to advanced
910 pages
33h 21m
English
We have now completed our function and we're almost ready to deploy it. To do that, we need to package it. AWS allows us to upload either a ZIP or a JAR file. We'll use the latter. However, we have some external dependencies, so we'll use the Maven Shade plugin to build a fat jar with our function and all of its dependencies. In the function module, add the following piece of code to the pom.xml file:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <finalName> cloudnotice-function-${project.version} </finalName> </configuration> </execution> </executions> ...