|
[
Permlink
| « Hide
]
Llewellyn Botelho added a comment - 30/Jan/08 03:41 PM
What's the status on a fix for this issue?
We've reported the same problem to the maven mailing list. Cf http://jira.codehaus.org/browse/MCLOVER-70
Below a copy of the message. I am not sure if the problem comes from clover or maven. [clover:instrument forked lifecyle] modified project artifacts list do not get propagated to the WAR/EAR mojos. Is this expected ? Jerome Lacoste Clovered EAR / WAR artifacts lacks clovered versions of transitive The issue is caused apparently as the clover plugins tries to modify Can someone confirm this reasoning, and maybe provide an alternative Details:
<lifecycle> <executions><execution><goals><goal>instrumentInternal</goal></goals></execution></executions> So when we run clover:instrument as part of a WAR project we see the [INFO] [clover:instrument] As part of clover:instrumentInternal, clover tries to override the
private void swizzleCloverDependencies() { getProject().setDependencyArtifacts( swizzleCloverDependencies( getProject().getDependencyArtifacts() ) ); getProject().setArtifacts( swizzleCloverDependencies( getProject().getArtifacts() ) ); }According to the debug logs, the swizzleCloverDependencies does the [INFO] [clover:instrumentInternal] The problem is when the war mojo is invoked later on, the list of Did the forked life cycle stop after the execution of the Or should I expect maven to appropriately pass the appropriate Cheers, Jerome http://developer.atlassian.com/jira/browse/CLMVN-25?focusedCommentId=16756#action_16756 I managed to hack maven to work, but this is in an unsupported way. It required to modify the project interface and inject code from clover plugin.
See http://www.mail-archive.com/dev@maven.apache.org/msg74636.html Here's the issue I created for maven: http://jira.codehaus.org/browse/MNG-3595
This patch is definitively not going to be accepted as is. Not sure if this is going to get fixed in a 2.0.x time frame. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||