Hi, The situation with the dataFile parameter, is that it is unreliable to use System Properties from within the embedded nature of the cobertura-maven-plugin.
The bug has a fix on the cobertura side: https://sourceforge.net/tracker/index.php?func=detail&aid=1543280&group_id=130558&atid=720017 Go encourage the cobertura folks to commit that patch. Full disclosure: Yes I wrote that patch, so I'm a little biased. ;-) The current cobertura-maven-plugin snapshot available in subversion already supports that cobertura patch. Once that patch is applied on the cobertura side, we should be able to reliably set the dataFile parameter. yay! You can also use the maven-clean-plugin to clean out that file. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>${basedir}</directory> <includes> <include>cobertura.ser</include> </includes> </fileset> </filesets> </configuration> </plugin> (caution, I wrote this out from memory, it might contain typos.) - Joakim Erdfelt dan tran wrote: > oopps, the doc did say we can not change this location due to bug in > corbertura 1.6 > > how about remove that file in your post-clean phase > > -D > > > On 10/4/06, Mick Knutson <[EMAIL PROTECTED]> wrote: >> >> So how would I configure dataFile in my plugin? >> >> >> >> >> On 10/4/06, dan tran <[EMAIL PROTECTED]> wrote: >> > >> > http://mojo.codehaus.org/cobertura-maven-plugin/cobertura-mojo.html >> > >> > On 10/4/06, Mick Knutson <[EMAIL PROTECTED]> wrote: >> > > >> > > I want to know how I can put cobertura.ser into my target DIR so >> when >> I >> > > run >> > > mvn clean, the cobertura files get cleaned as well. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]