From: Leonardo D. <leo...@he...> - 2007-01-04 18:13:30
|
SGksIEkgYW0gaGF2aW5nIHByb2JsZW1zIHVzaW5nIHRoZSBwbHVnaW4gKGh0dHA6Ly9tb2pvLmNv ZGVoYXVzLm9yZy9jb2JlcnR1cmEtbWF2ZW4tcGx1Z2luL2luZGV4Lmh0bWwpLiBUaGUgcHJvYmxl bSBpcyB0aGF0IHRoZSBwbHVnaW4gZ2VuZXJhdGVzIHRoZSBjb2JlcnR1cmEuc2VyIGludG8gdGhl IFtwcm9qZWN0RGlyXS90YXJnZXQvY29iZXJ0dXJhIGRpcmVjdG9yeSBhbmQgdGhlbiBsb29rcyBm b3IgaXQgaW4gdGhlIFtwcm9qZWN0RGlyXSBkaXJlY3RvcnkuDQpJIGZvdW5kIGxhdGVyIHRoYXQg dGhlcmUgaXMgYSBwcm9wZXJ0eSBuZXQuc291cmNlZm9yZ2UuY29iZXJ0dXJhLmRhdGFmaWxlIHdo ZXJlIHlvdSBjYW4gY29uZmlndXJlIGNvYmVydHVyYSB0byBjcmVhdGUgYW5kIGxvYWQgdGhlIC5z ZXIgZmlsZSBidXQgaSBjYW5ub3QgY29uZmlndXJlIHRoaXMgdGhyb3VnaCB0aGUgbWF2ZW4yIHBs dWdpbi4NClNvbWVvbmUga25vd24gYSBzb2x1dGlvbiB0byBteSBwcm9ibGVtPw0KVGhhbmtzLi4u DQogICAgICAgICAgICAgIExlb25hcmRvLg0K |
From: Tim M. 2 <tim...@gm...> - 2007-01-15 20:50:17
|
I'm not sure that the system property will work with the Maven2 plugin. The problem you mention has been identified as a bug: http://jira.codehaus.org/browse/MCOBERTURA-57 A workaround appears to be to go back to the version 2.0 of the plugin by specifying this in your <plugins /> section: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0</version> </plugin> (Note: If you have included the plugin definition only in the <reporting /> section, I found I had to also add it to the <build><plugins /></build> section for it to pick up the earlier version number). Tim Leonardo Degiovannini wrote: > > Hi, I am having problems using the plugin > (http://mojo.codehaus.org/cobertura-maven-plugin/index.html). The problem > is that the plugin generates the cobertura.ser into the > [projectDir]/target/cobertura directory and then looks for it in the > [projectDir] directory. > I found later that there is a property net.sourceforge.cobertura.datafile > where you can configure cobertura to create and load the .ser file but i > cannot configure this through the maven2 plugin. > Someone known a solution to my problem? > Thanks... > Leonardo. > -- View this message in context: http://www.nabble.com/Problems-using-maven-2-plugin-for-cobertura-tf2921081.html#a8378995 Sent from the cobertura-devel mailing list archive at Nabble.com. |
From: Andreas G. <And...@ma...> - 2007-01-16 06:40:48
|
I am actually was still using the 2.0 plug-in. I was not aware that there is a newer version and we actually specify everywhere explicit the version number of our plug-ins. I also run the 'mvn help:effective-pom' to verify that no 2.1 version had been used by accident. I wonder if the problem is that I was generating the instrumented build with Cobertura 1.7 which I assume the 2.0 plug-in is using and then later I used Cobertura 1.8 to generate the reports. Andreas=20 -----Original Message----- From: cob...@li... [mailto:cob...@li...] On Behalf Of Tim Morrow 2 Sent: Monday, January 15, 2007 12:50 PM To: cob...@li... Subject: Re: [Cobertura-devel] Problems using maven 2 plugin for cobertura I'm not sure that the system property will work with the Maven2 plugin. The problem you mention has been identified as a bug: http://jira.codehaus.org/browse/MCOBERTURA-57 A workaround appears to be to go back to the version 2.0 of the plugin by specifying this in your <plugins /> section: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0</version> </plugin> (Note: If you have included the plugin definition only in the <reporting /> section, I found I had to also add it to the <build><plugins /></build> section for it to pick up the earlier version number). Tim Leonardo Degiovannini wrote: >=20 > Hi, I am having problems using the plugin > (http://mojo.codehaus.org/cobertura-maven-plugin/index.html). The problem > is that the plugin generates the cobertura.ser into the > [projectDir]/target/cobertura directory and then looks for it in the > [projectDir] directory. > I found later that there is a property net.sourceforge.cobertura.datafile > where you can configure cobertura to create and load the .ser file but i > cannot configure this through the maven2 plugin. > Someone known a solution to my problem? > Thanks... > Leonardo. >=20 --=20 View this message in context: http://www.nabble.com/Problems-using-maven-2-plugin-for-cobertura-tf2921 081.html#a8378995 Sent from the cobertura-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Cobertura-devel mailing list Cob...@li... https://lists.sourceforge.net/lists/listinfo/cobertura-devel |