[ 
http://jira.codehaus.org/browse/MCLIRR-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Wiedmann closed MCLIRR-2.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

Applied Vincents fix.


> Report not generated anymore
> ----------------------------
>
>                 Key: MCLIRR-2
>                 URL: http://jira.codehaus.org/browse/MCLIRR-2
>             Project: Maven 2.x Clirr Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Maven 2.0.4.
>            Reporter: Vincent Massol
>            Priority: Blocker
>             Fix For: 2.1
>
>
> Before MCLIRR-1 was fixed the reports were geneated fine. They are not 
> generated anymore. However the clirr plugin no longer fails on projects with 
> no previous released versions;
> Here's the POM I'm using: http://svn.codehaus.org/cargo/cargo/trunk/pom.xml
> To reproduce the problem:
> * check out cargo: https://svn.codehaus.org/cargo/cargo/trunk
> * cd to the project's top level and type "mvn site"
> * go to core/api/containers/target/site. You'll see that there's no clirr 
> report generated there.
> I've done some debugging and it seems the problem is in the following method:
> {code}
>     protected boolean canGenerate()
>         throws MojoFailureException, MojoExecutionException
>     {
>         boolean sources = false;
>         for ( Iterator i = 
> executedProject.getCompileSourceRoots().iterator(); i.hasNext() && !sources; )
>         {
>             String root = (String) i.next();
>             if ( new File( root ).exists() )
>             {
>                 sources = true;
>             }
>         }
>         if ( !sources )
>         {
>             return false;
>         }
>         else
>         {
>             Artifact previousArtifact = getComparisonArtifact();
>             return previousArtifact.getVersion() != null;
>         }
>     }
> {code}
> The executedProject.getCompileSourceRoots() method returns an empty list even 
> for projects with sources.
> Could this be a bug in Maven 2.0.4?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to