make optional for Spring

in case of tests that don't add any repository listeners to the classpath
update archetype for repository metadata

use mocks instead of full implementations for testing, cut down dependencies