Declare jar dependencies as jar type dependencies

Just like #2070, more dependencies were wrongly labeled as of pom type.