Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1026

Clover plugin could not handle two modules with same artifact id in a reactor project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 3.1.6
    • 3.1.0
    • Maven plugin
    • None
    • Maven3, Windows, Unix, JDK 1.6.0_27

    Description

      The clover plugin changes the source folder of an artifact in the wrong way, if the modules of a reactor project contains
      two artifact with equal ids but different group ids.

      To check this, we add the following debug output

      class CloverInstrumentInternalMojo {
      ...
      @Override
      public void execute() throws MojoExecutionException {
      ...
      System.out.println("1:" + getProject().getCompileSourceRoots());
      resetSrcDirsOriginal(getProject().getArtifact(), this);
      System.out.println("2:" + getProject().getCompileSourceRoots());
      

      and get the following output

      {nofromat}
      1:[D:\Build\cmh.bamboo\compile-deploy\de.ponton.cmh.queuing.xp\src]
      [DEBUG] Clover source directories before change:
      [DEBUG] [Clover] source root [D:\Build\cmh.bamboo\compile-deploy\de.ponton.cmh.queuing.xp\src]
      [DEBUG] Clover main source directories after change:
      [DEBUG] [Clover] source root [D:\Build\cmh.bamboo\compile-deploy\de.ponton.cmh.auditlog.xp\src\main\java]
      [DEBUG] Clover source directories before change:
      [DEBUG] [Clover] source root [D:\Build\cmh.bamboo\compile-deploy\de.ponton.cmh.queuing.xp\src\test\java]
      [DEBUG] Clover main source directories after change:
      [DEBUG] [Clover] source root [D:\Build\cmh.bamboo\compile-deploy\de.ponton.cmh.queuing.xp\src\test\java]
      2:[D:\Build\cmh.bamboo\compile-deploy\de.ponton.cmh.auditlog.xp\src\main\java]{nofromat}

      The plugin changes the source to the source folder of the wrong artifact.

      Attachments

        Activity

          People

            mparfianowicz Marek Parfianowicz
            jmuehlenhoff Jens Mühlenhoff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: