Generalize installation of dependencies in pom.xml
Change scope to 'provided' for external dependencies