After serveral tries to combine Java Advanced Imaging (JAI) with a Maven project I finally succeeded. The main problem as it is often in such cases is that there is not enough documentation on the subject in the web. I am sure that countless programmer had the same problem, but after they solved the problem they did not document it or if they did their solution is unsatisfactory for an open source project (e.g. installing the JAI dependencies in your local repository). Therefore here is my solution: