Selenium series: Creating an UberJAR
Blog post from Octopus Deploy
Matthew Casperson's blog post from October 2, 2018, explains how to create a Selenium WebDriver test framework using a Maven project to build and package code into a JAR file. Initially, the JAR file only contains the project's classes, excluding necessary libraries like WebDriver and Cucumber. To address this, an UberJAR is created using Maven's Shade plugin, which packages the application with all dependencies into a single, self-contained file suitable for AWS Lambda deployment. The post also guides users on skipping tests during the Maven package lifecycle to streamline the build process, allowing for quicker production of the JAR files. Future posts in the series will cover running WebDriver tests in Lambda and using a Serverless application to publish the UberJAR.