Using ECJ to generate compile logs in a Maven project
The title pretty much says it all:
This guide demonstrates how I can configure an Ant project to give detailed (ECJ/JUnit) information to RTC (using Jenkins);
And this guide shows how I can configure an Maven project, but using the standard Java compiler, so no compile XML information. (I used JBE for this one, following the guide)
I want to know if there is a way to generate ECJ compile logs in a Maven project, so they can be uploaded and analysed by RTC.
Thanks!
One answer
Have you looked into the JKE Banking example that ships with RTC? As far as I know that uses ECJ to generate JUNit and Compile logs and publishes them to the JBE. I don't see why you should not be able to use the same approach to generate the output you want.
Comments
The JKE Banking example surely is interesting, showing how to achieve the same results in .NET as well, but it doesn't have an example using the Maven build system. I am aware that I can use ant-tasks plugin in Maven to run ECJ, but using the standard Maven approach (maven-compiler-plugin with plexus-eclipse-compiler), I have not succeeded in generating ECJ compile logs so far. I just wonder if there is a way to fully integrate RTC functionality in Maven builds more cleanly.