我将Spring Boot从1.1.5升级到1.1.6,之后,我的(多项目)构建失败了:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':admin:bootRepackage'.
> Duplicate library commons-io-1.3.2.jar
所有其他任务似乎都已成功(compileJava,compileGroovy,processResources,classes,jar和distJar)。我在build.gradle文件中对Commons I / O库有一个显式依赖:
compile group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
我正在使用Gradle 2.1,但尝试使用2.0进行构建没有任何区别。我运行gradle依赖,但它没有透露任何特别有趣的东西。自升级以来有没有人见过这个?回到1.1.5解决了这个问题,所以我猜测它与Spring Boot jar中的新依赖关系1.1.6有关。任何有关决议的提示都会受到赞赏。