[ 
https://issues.apache.org/jira/browse/DOXIASITETOOLS-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887327#comment-17887327
 ] 
Guillaume Nodet commented on DOXIASITETOOLS-343:
------------------------------------------------

The problem isn't really in DoxiaTools, which uses the MavenProject being 
injected by Maven into the mojo.  The problem is more related to 
maven-project-info-reports-plugin which uses the {{ProjectBuilder}} instead of 
{{{}ModelBuilder{}}}.

> Rewrite DefaultSiteTools project management
> -------------------------------------------
>
>                 Key: DOXIASITETOOLS-343
>                 URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-343
>             Project: Maven Doxia Sitetools
>          Issue Type: Improvement
>            Reporter: Guillaume Nodet
>            Priority: Major
>
> The code loads MavenProject from local repositories and uses 
> {{project.getBasedir() == null}} to check if the project was loaded from the 
> local repository or if it is a real project.
> This is wrong imho (and was broken in 4.0.0-alpha-8 to beta-3).  To load a 
> model from the local repository, one should use {{ModelBuilder}} and only use 
> {{ProjectBuilder}} to load projects which are _real_ projects.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to