Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.1.0
-
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.