Uploaded image for project: 'Tamaya'
  1. Tamaya
  2. TAMAYA-205

Build warnings about duplicate versions for mockito

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2-incubating
    • 0.3-incubating
    • None
    • None

    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?

      Attachments

        Activity

          People

            pottlinger Philipp Ottlinger
            pottlinger Philipp Ottlinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: