You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Wouter Hermeling (JIRA)" <ji...@codehaus.org> on 2006/02/11 15:55:47 UTC

[jira] Commented: (MPCHECKSTYLE-24) checktyle looks for headerFile in wrong directory when ran in multiproject mode

    [ http://jira.codehaus.org/browse/MPCHECKSTYLE-24?page=comments#action_58420 ] 

Wouter Hermeling commented on MPCHECKSTYLE-24:
----------------------------------------------

I have an issue with the new checkstyle plugin version (3.0) too when running in a multiproject build.

The problem is, is that the checkstyle files are now by default generated under the /target/checkstyle dir. When the maven site is generated, the navigation links from the checkstyle pages are broken. This is because the navgation links are relative and the same navigation is applied to all docs for the maven site. In the case of the checkstyle files - which are 

> checktyle looks for headerFile in wrong directory when ran in multiproject mode
> -------------------------------------------------------------------------------
>
>          Key: MPCHECKSTYLE-24
>          URL: http://jira.codehaus.org/browse/MPCHECKSTYLE-24
>      Project: maven-checkstyle-plugin
>         Type: Bug

>     Versions: 2.4.1
>     Reporter: Jerome Lacoste
>      Fix For: 3.0.1

>
>
> Not sure if it is a plugin problem but it sounds like.
> I run a multiproject build.
> Inside one subdir (e.g. main), I have a checkstyle report configured. The checkstyle plugin is configured as such in the main/project.properties:
> maven.checkstyle.properties=${basedir}/checkstyle.xml
> This checkstyle config contains:
>       <!-- Header -->
>         <module name="Header">
>             <property name="headerFile" value="cruisecontrol.header"/>
>             <property name="ignoreLines" value="3"/>
>         </module>
> Running maven in the main directory works great. Running it from the upper level directory fails in the checkstyle plugin because the checkstyle ant task doesn't find the header file.
> I workaround the problem by copying the main/cruisecontrol.header file in the upper directory, from where the multiproject is built.
> I am not sure there is a solution to that problem. I am willing to spend some time to fix it if I get some guidance.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org