Exceptions & Maven

Exceptions

Dealing with unexpected events and errors is usually delegated to the Exceptions mechanism in Java. Here we review the nature of exceptions and identify some best practices when dealing with exceptions generated from libraries and frameworks.

Maven Introduction

Building and deploying Java applications can be a source of considerable complexity and ad-hoc procedures. Maven is a tool than aims to standardize this process, incorporating rigorous dependency management, repository structure and project layout best practices.

Maven Example

Using maven in practice will involve bootstrapping a project from scratch, and dealing immediately with library dependencies. For well known libraries this will be straightforward. For obscure or abandoned libraries, we need to take some additional steps.

Assessment Rubric

A tour of how assessment 1 will be graded

Lab-06

Install and configure maven and then create and and test a single module maven project with several external dependencies. Once this is working, incorporate into Eclipse.