Clover plugin produces garbled reports for source code with UTF-8

Hi,


When the source code contains a line such as:

* @author Petter Måhlén

The corresponding file in the coverage report from running mvn clover2:clover is:

* @author Petter Måhlén

This is in spite of having configured the clover2 plugin like so:

<plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-clover2-plugin</artifactId>
        <configuration>
          <charset>${default.encoding}</charset>
...

The default.encoding is of course set to UTF-8 and is the setting that is used

for all other plugins.

Any idea if that is a bug (seem not to be allowed to view any bugs, or they've all been moved),

or if it can be fixed somehow?

Thanks,

Petter


1 answer

1 accepted

0 vote
Nick Pellow Atlassian Team Jan 21, 2012

Hi Petter,

For the maven-clover2-plugin, try setting the 'encoding' configuration instead.

See also: http://docs.atlassian.com/maven-clover2-plugin/3.1.3/setup-mojo.html#encoding

Cheers,

Nick

That solved it, thanks - we must have been looking here: http://docs.atlassian.com/maven-clover2-plugin/3.1.3/clover-mojo.html when we found the 'charset' parameter.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

157 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you