Build issue with maven-project-info-reports-plugin

Yesterday had a whole bunch of issues with some of my Maven plugins. I’ll list some details here for reference.

I’m running maven 2.2.1 and (I’ve suddenly just noticed) java 1.5.

The first error I recieved was:

Deprecated API called – not org.apache.maven.doxia.sink.Sink
instance and no SinkFactory available. Please update this plugin.

Which I thought was coming from my maven-jxr-plugin. So I simply commented it out, it’s not that important to me.

Next up I got:

A required class is missing org/apache/maven/reporting/AbstractMavenReport

Which, after a little googling, appeared to have something to do with the maven-project-info-reports-plugin. So I decided to upgrade to the latest version of maven-project-info-reports-plugin. No joy. Maven claimed it couldnd locate version 2.3.1 from ANY repository, despite the fact that it was there in the maven central repo AND I installed it in my own repo. I think this was the error it gave me:

unable to load the mojo org.apache.maven.plugins:maven-project-info-reports-plugin

So to fix this I randomly tried referencing an older version of the plugin (namely v 2.1.1) and it seems to work now. My plugin reference now looks like this in my POM:


<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-project-info-reports-plugin</artifactId>
    <version>2.1.1</version>
    <configuration>
           <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
    </configuration>
</plugin>


 

Right, I'm going to go update my java to 1.6, which it what it should have been all along, and hope that this wasn't the cause of all my woes yesterday 🙂

Leave a comment