报错:‘dependencies.dependency.(groupId:artifactId:type:classifier)‘ must be unique:

场景

mvn package的时候报错,提示信息:
‘dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: com.github.ulisesbocchio:jasypt-spring-boot-starter:jar -> version 1.18 vs 1.12

解决方案

这个提示比较清楚,jar包冲突了。
例如有的包已经包含了依赖包,又单独的引入了同名包,就会报这个错。

去掉对应的依赖即可。

猜你喜欢

转载自blog.csdn.net/enthan809882/article/details/112978364