Eric Lefevre-Ardant on Java & Agile

February 14, 2007

Configuring Cobertura in Maven 2

Filed under: java, maven, test — Eric Lefevre-Ardant @ 5:46 pm

After many spurious error messages, I finally managed to make it work. Be warned that the information on the official Cobertura Maven plugin page, the informations are not exactly correct. Below, you’ll find in bold the fixes.

The “Basic Cobertura Configuration” seems fine, however, to configure the instrumentation, you need to add the following to your config file:

<project>
  ...
  <build>
    ...
    <plugins>
      ...
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.1</version> <!-- apparently, this is not necessary in the reporting part -->
        <configuration>
          <instrumentation>
            <!-- <ignore>com.example.boringcode.*</ignore> --> <!-- not sure how to make this work, or even if it is necessary at all -->
	    <excludes> <!-- the usual ant exclude pattern was missing -->
              <exclude>com/example/dullcode/**/*.class</exclude>
              <exclude>com/example/**/*Test.class</exclude>
            </excludes>
          </instrumentation>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

Successful internal OpenSpace meeting yesterday

Filed under: openspace, valtech — Eric Lefevre-Ardant @ 11:20 am

Yesterday, I hosted an OpenSpace conference in the Valtech office in Paris. The theme was ‘pet projects that we want to work on (though we already work fulltime)’. I was a bit apprehensive, as my previous experience had been in London; I was not sure how a French audience would react.

I think I can say that, by and large, it has been a success. Because it was taking place in the evening after the usual daytime assignments, we could only provide for 2 one-hour long sessions in 4 rooms(plus one hour of preparation beforehand). So, as expected, a few topics did not gather enough momentum and were dropped in favour of somemore popular ones.

I attended two that gathered half-a-dozen people. Not much compared to the 30 or so participants, but more than enough to have a productive session.

As it appears, I am going to take the lead in organizing a public OpenSpace Conference on Agile practices (though we do not want to compete with XP Day Paris). Many things still need to be sorted out, but my goal is to have it happen before the end of year 2007 (my boss would prefer before summer, but somehow I am not confident we can do it so quickly).

Another one I’ll contribute to is lead by David. The plan is to organize bi-weekly evening technical sessions opened to the public and to Valtech consultants.

Sadek told me he had taken more than 200 pictures yesterday (?!). I hope he’ll put some of them on his blog.

I also have my own pictures of the event.

Powered by WordPress