Only change war classpath when managing dependencies