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

Jacob Robertson updated MJNCSS-12:
----------------------------------

    Attachment: MJNCSS-12.patch

I have a similar need.  My use case is that I would like my parent project to 
"aggregate" all child modules, but into one big report that shows all metrics, 
not just the summary.  What I've done is to say aggregate=false, but then set 
my sourceDirectory to ${project.basedir}.  This works for the javancss plugin, 
but it interferes with some other plugins.  So, I have created a patch that 
replaces the sourceDirectory parameter with a sourceDirectories parameter in 
the mojo which can be configured, or else it will default to 
project.compileSourceRoots.  I have tested this and verified that it does work 
with the build helper plugin.

If this patch is interesting to the project owners, let me know if you have any 
questions.

> Source added using build-helper-maven-plugin is missing...?
> -----------------------------------------------------------
>
>                 Key: MJNCSS-12
>                 URL: http://jira.codehaus.org/browse/MJNCSS-12
>             Project: Maven 2.x JavaNCSS Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-2
>         Environment: Windows XP, Maven 2.0.5, 
> org.codehaus.mojo:build-helper-maven-plugin:1.0
>            Reporter: Jan Palmquist
>         Attachments: MJNCSS-12.patch
>
>
> Sources added by build-helper-maven-plugin does not get analyzed using this 
> plugin (javancss:report).
> ncss-plugin is documented as to analyze all sources being built by default...
> I guess a workaround is to add the source-directory using the <includes> 
> configuration...
> In my case, I use the following build-helper-maven-plugin configuration:
>   <build>
>     <plugins>
>          ....
>       <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>build-helper-maven-plugin</artifactId>
>         <executions>
>           <execution>
>             <id>add-source</id>
>             <phase>generate-sources</phase>
>             <goals>
>               <goal>add-source</goal>
>             </goals>
>             <configuration>
>               <sources>
>                 <source>src/main/java</source>
>                 <source>src/main/java-generated</source>
>               </sources>
>             </configuration>
>           </execution>
>           <execution>
>             <id>add-test-source</id>
>             <phase>generate-sources</phase>
>             <goals>
>               <goal>add-test-source</goal>
>             </goals>
>             <configuration>
>               <sources>
>                 <source>src/test/java</source>
>                 <source>src/test/java-generated</source>
>               </sources>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>          ....
>     </plugins>
>   </build>

-- 
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