Java接口自动化框架执行时遇到的警告问题
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.cipherxxx:cicd3:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.commons:commons-lang3:jar -> version 3.8.1 vs 3.9 @ line 145, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
问题:'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.commons:commons-lang3:jar -> version 3.8.1 vs 3.9 @ line 145, column 21
解决方法:提示中有must be unique,提示必须唯一,检查pom文件,可能有重复的dependency,将重复的去除即可
<!-- commons-lang3依赖--> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.8.1</version> </dependency>