Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4402

Improve duplicated modules error

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-3
    • Fix Version/s: 3.0-alpha-3
    • Component/s: Errors
    • Labels:
      None

      Description

      Maven should better scream at the duplicate module in the originating POM to catch the issue at its source.

      Right now it does print

      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-compiler-iface:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-compiler-iface:4
      .0-SNAPSHOT, F:\flexmojos-aggregator\flexmojos-sandbox\flexmojos-generator-compiler-iface\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-compiler-iface:4.0-S
      NAPSHOT, F:\flexmojos-aggregator\flexmojos-sandbox\flexmojos-generator-compiler-iface\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-compiler-iface:4.0-
      SNAPSHOT, F:\flexmojos-aggregator\flexmojos-sandbox\flexmojos-generator-compiler-iface\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-compiler-iface:4.0-SNAPSHO
      T, F:\flexmojos-aggregator\flexmojos-sandbox\flexmojos-generator-compiler-iface\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-compiler-iface:4.0-SNAPS
      HOT, F:\flexmojos-aggregator\flexmojos-sandbox\flexmojos-generator-compiler-iface\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-api:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT
      , F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT, F:
      \flexmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT, F
      :\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT, F:\flexm
      ojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT, F:\fle
      xmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:
      4.0-SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0-
      SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0
      -SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0-SNAPSH
      OT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0-SNAP
      SHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:
      4.0-SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0-
      SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0
      -SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0-SNAPSH
      OT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0-SNAP
      SHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-constraints:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-
      SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNAP
      SHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNA
      PSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNAPSHOT,
      F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNAPSHOT
      , F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-api:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT
      , F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT, F:
      \flexmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT, F
      :\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT, F:\flexm
      ojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-api:4.0-SNAPSHOT, F:\fle
      xmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:
      4.0-SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0-
      SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0
      -SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0-SNAPSH
      OT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0-SNAP
      SHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:
      4.0-SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0-
      SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0
      -SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0-SNAPSH
      OT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0-SNAP
      SHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-generator-constraints:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-
      SNAPSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNAP
      SHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNA
      PSHOT, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNAPSHOT,
      F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNAPSHOT
      , F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.sonatype.flexmojos:flexmojos-tester:jar:4.0-SNAPSHOT
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-checkstyle-plugin @ org.sonatype.flexmojos:flexmojos-tester:4.0-SNAPSHOT, F:\fl
      exmojos-aggregator\flexmojos-testing\flexmojos-tester\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-plugin-plugin @ org.sonatype.flexmojos:flexmojos-tester:4.0-SNAPSHOT, F:\flexmo
      jos-aggregator\flexmojos-testing\flexmojos-tester\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.sonatype.flexmojos:flexmojos-tester:4.0-SNAPSHOT, F:\flexm
      ojos-aggregator\flexmojos-testing\flexmojos-tester\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:taglist-maven-plugin @ org.sonatype.flexmojos:flexmojos-tester:4.0-SNAPSHOT, F:\flexmojos-ag
      gregator\flexmojos-testing\flexmojos-tester\pom.xml
      [WARNING] 'reporting.plugins.plugin.version' is missing for org.codehaus.mojo:changelog-maven-plugin @ org.sonatype.flexmojos:flexmojos-tester:4.0-SNAPSHOT, F:\flexmojos-
      aggregator\flexmojos-testing\flexmojos-tester\pom.xml
      [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]
      [ERROR] Two or more projects in the reactor have the same identifier, please make sure that <groupId>:<artifactId>:<version> is unique for each project: {org.sonatype.fle
      xmojos:flexmojos-generator:4.0-SNAPSHOT=[F:\flexmojos-aggregator\flexmojos-generator\pom.xml, F:\flexmojos-aggregator\flexmojos-generator\pom.xml], org.sonatype.flexmojos
      :flexmojos-generator-api:4.0-SNAPSHOT=[F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-api\pom.xml, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-
      generator-api\pom.xml], org.sonatype.flexmojos:flexmojos-generator-graniteds-1.1.0:4.0-SNAPSHOT=[F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds
      -1.1.0\pom.xml, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-1.1.0\pom.xml], org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:4.0-S
      NAPSHOT=[F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-graniteds-2.0.0\pom.xml, F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-granited
      s-2.0.0\pom.xml], org.sonatype.flexmojos:flexmojos-generator-constraints:4.0-SNAPSHOT=[F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml
      , F:\flexmojos-aggregator\flexmojos-generator\flexmojos-generator-constraints\pom.xml]} [0]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [0] http://cwiki.apache.org/confluence/display/MAVEN/DuplicateProjectException
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bentmann Benjamin Bentmann
                Reporter:
                velo velo
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: