Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.2-incubating
-
None
-
None
-
22:29 $ mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: /home/me/software/maven
Java version: 1.8.0_112, vendor: Oracle Corporation
Java home: /home/me/jdk1.8.0_112/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-47-generic", arch: "amd64", family: "unix"22:29 $ mvn --version Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00) Maven home: /home/me/software/maven Java version: 1.8.0_112, vendor: Oracle Corporation Java home: /home/me/jdk1.8.0_112/jre Default locale: de_DE, platform encoding: UTF-8 OS name: "linux", version: "4.4.0-47-generic", arch: "amd64", family: "unix"
Description
Jenkins and locally you see the following warning in each build of tamaya:
✔ ~/ws2016/incubator-tamaya [master|✚ 1] 22:29 $ mvn [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya:buildconfigurations:jar:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ org.apache.tamaya:tamaya-all:0.3-incubating-SNAPSHOT, /home/me/ws2016/incubator-tamaya/pom.xml, line 265, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya:tamaya-api:jar:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ org.apache.tamaya:tamaya-all:0.3-incubating-SNAPSHOT, /home/me/ws2016/incubator-tamaya/pom.xml, line 265, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya:tamaya-core:bundle:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ org.apache.tamaya:tamaya-all:0.3-incubating-SNAPSHOT, /home/me/ws2016/incubator-tamaya/pom.xml, line 265, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya:tamaya-code:pom:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ org.apache.tamaya:tamaya-all:0.3-incubating-SNAPSHOT, /home/me/ws2016/incubator-tamaya/pom.xml, line 265, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya:tamaya-docs:jar:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ org.apache.tamaya:tamaya-all:0.3-incubating-SNAPSHOT, /home/me/ws2016/incubator-tamaya/pom.xml, line 265, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya.examples:01-minimal:jar:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ org.apache.tamaya:tamaya-all:0.3-incubating-SNAPSHOT, /home/me/ws2016/incubator-tamaya/pom.xml, line 265, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya.examples:examples:pom:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ org.apache.tamaya:tamaya-all:0.3-incubating-SNAPSHOT, /home/me/ws2016/incubator-tamaya/pom.xml, line 265, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya:tamaya-distribution:jar:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ org.apache.tamaya:tamaya-all:0.3-incubating-SNAPSHOT, /home/me/ws2016/incubator-tamaya/pom.xml, line 265, column 25 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.tamaya:tamaya-all:pom:0.3-incubating-SNAPSHOT [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.mockito:mockito-core:jar -> version 2.2.26 vs (?) @ line 265, column 25 [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]
The mockito-version is defined in the base pom but not in the mentioned module's subpom.xml - where does the second version come from?