Resolve compile classpath elements instead of runtime elements.
Otherwise generating swagger specification fails for swagger annotated
classes if imports from maven dependencies in scope "provided" are used.