[jira] Created: (MJNCSS-12) Source added using build-helper-maven-plugin is missing...?

View: New views
7 Messages — Rating Filter:   Alert me  

[jira] Created: (MJNCSS-12) Source added using build-helper-maven-plugin is missing...?

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
         Assigned To: Jean-Laurent de Morlhon


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


[jira] Commented: (MJNCSS-12) Source added using build-helper-maven-plugin is missing...?

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Dan Tran commented on MJNCSS-12:
--------------------------------

both javancss and build-helper execute at generate-sources phase, and javancss wins the race :-)

You need change build-helper phase to an earlier phase



> 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
>         Assigned To: Jean-Laurent de Morlhon
>
> 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


[jira] Commented: (MJNCSS-12) Source added using build-helper-maven-plugin is missing...?

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Andrej commented on MJNCSS-12:
------------------------------

Sorry for my very bad englisch.
I have some problem.

I use the following build-helper-maven-plugin configuration:

      <plugin>
       <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>validate</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
            <source>/home/tomcat/storage/P1/src</source>
        <source>/home/tomcat/storage/P2/src</source>
        <source>/home/tomcat/storage/P3/src</source>
        <source>/home/tomcat/storage/P4/src</source>
        <source>/home/tomcat/storage/P5/src</source>
        <source>/home/tomcat/storage/P6/src</source>
        <source>/home/tomcat/storage/P7/src</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>

and here is the javancss-plugin:
        <!-- JAVANCSS PLUGIN -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>javancss-maven-plugin</artifactId>
        <version>2.0-beta-2</version>

        <configuration>
           <xrefLocation>${reporting.outputDirectory}/xref</xrefLocation>
                         <includes>
            <include>/home/tomcat/storage/P1/src/*.java</include>
        <include>/home/tomcat/storage/P2/src/*.java</include>
        <include>/home/tomcat/storage/P3/src/*.java</include>
        <include>/home/tomcat/storage/P4/src/*.java</include>
        <include>/home/tomcat/storage/P5/src/*.java</include>
        <include>/home/tomcat/storage/P6/src/*.java</include>
        <include>/home/tomcat/storage/P7/src/*.java</include>
                      </includes>
        </configuration>
      </plugin>

but the sources will not be analyzed. If I delete all includes, only sources from my project will be analyzed.
I have changed build-helper phase to validate, it's not help.
I need to analyze all dependencies of my project but only sources not jar-files.
Please help me.

here is the console when i delete all includes

[DEBUG] Generating /home/tomcat/live/webapps/maven/Slider2/javancss.html
[INFO] Generate "JavaNCSS Report" report.
[DEBUG] Scanning base directory /home/tomcat/storage/Slider2/src
[DEBUG] Scanning base directory /home/tomcat/storage/Slider2/src
[DEBUG] Calling NCSSExecuter with src    : /home/tomcat/storage/Slider2/src
[DEBUG] Calling NCSSExecuter with output : /home/tomcat/live/webapps/maven/Slider2/javancss-raw-report.xml
[DEBUG] Calling NCSSExecuter with includes : null
[DEBUG] Calling NCSSExecuter with excludes : null


> 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
>            Assignee: Jean-Laurent de Morlhon
>
> 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


[jira] Issue Comment Edited: (MJNCSS-12) Source added using build-helper-maven-plugin is missing...?

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

andron edited comment on MJNCSS-12 at 11/28/07 8:41 AM:
--------------------------------------------------------

Sorry for my very bad englisch.
I have some problem.

I use the following build-helper-maven-plugin configuration:

      <plugin>
       <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>validate</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
            <source>/home/tomcat/storage/P1/src</source>
        <source>/home/tomcat/storage/P2/src</source>
        <source>/home/tomcat/storage/P3/src</source>
        <source>/home/tomcat/storage/P4/src</source>
        <source>/home/tomcat/storage/P5/src</source>
        <source>/home/tomcat/storage/P6/src</source>
        <source>/home/tomcat/storage/P7/src</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>

and here is the javancss-plugin:
        <!-- JAVANCSS PLUGIN -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>javancss-maven-plugin</artifactId>
        <version>2.0-beta-2</version>

        <configuration>
           <xrefLocation>${reporting.outputDirectory}/xref</xrefLocation>
                         <includes>
            <include>/home/tomcat/storage/P1/src/*.java</include>
        <include>/home/tomcat/storage/P2/src/*.java</include>
        <include>/home/tomcat/storage/P3/src/*.java</include>
        <include>/home/tomcat/storage/P4/src/*.java</include>
        <include>/home/tomcat/storage/P5/src/*.java</include>
        <include>/home/tomcat/storage/P6/src/*.java</include>
        <include>/home/tomcat/storage/P7/src/*.java</include>
                      </includes>
        </configuration>
      </plugin>

but the sources will not be analyzed. If I delete all includes, only sources from my project will be analyzed.
I have changed build-helper phase to validate, it's not help.
I need to analyze all dependencies of my project but only sources not jar-files.
Please help me.

here is the console when i delete all includes

[DEBUG] Generating /home/tomcat/live/webapps/maven/MyP/javancss.html
[INFO] Generate "JavaNCSS Report" report.
[DEBUG] Scanning base directory /home/tomcat/storage/MyP/src
[DEBUG] Scanning base directory /home/tomcat/storage/MyP/src
[DEBUG] Calling NCSSExecuter with src    : /home/tomcat/storage/MyP/src
[DEBUG] Calling NCSSExecuter with output : /home/tomcat/live/webapps/maven/MyP/javancss-raw-report.xml
[DEBUG] Calling NCSSExecuter with includes : null
[DEBUG] Calling NCSSExecuter with excludes : null


      was (Author: andron):
    Sorry for my very bad englisch.
I have some problem.

I use the following build-helper-maven-plugin configuration:

      <plugin>
       <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>validate</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
            <source>/home/tomcat/storage/P1/src</source>
        <source>/home/tomcat/storage/P2/src</source>
        <source>/home/tomcat/storage/P3/src</source>
        <source>/home/tomcat/storage/P4/src</source>
        <source>/home/tomcat/storage/P5/src</source>
        <source>/home/tomcat/storage/P6/src</source>
        <source>/home/tomcat/storage/P7/src</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>

and here is the javancss-plugin:
        <!-- JAVANCSS PLUGIN -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>javancss-maven-plugin</artifactId>
        <version>2.0-beta-2</version>

        <configuration>
           <xrefLocation>${reporting.outputDirectory}/xref</xrefLocation>
                         <includes>
            <include>/home/tomcat/storage/P1/src/*.java</include>
        <include>/home/tomcat/storage/P2/src/*.java</include>
        <include>/home/tomcat/storage/P3/src/*.java</include>
        <include>/home/tomcat/storage/P4/src/*.java</include>
        <include>/home/tomcat/storage/P5/src/*.java</include>
        <include>/home/tomcat/storage/P6/src/*.java</include>
        <include>/home/tomcat/storage/P7/src/*.java</include>
                      </includes>
        </configuration>
      </plugin>

but the sources will not be analyzed. If I delete all includes, only sources from my project will be analyzed.
I have changed build-helper phase to validate, it's not help.
I need to analyze all dependencies of my project but only sources not jar-files.
Please help me.

here is the console when i delete all includes

[DEBUG] Generating /home/tomcat/live/webapps/maven/Slider2/javancss.html
[INFO] Generate "JavaNCSS Report" report.
[DEBUG] Scanning base directory /home/tomcat/storage/Slider2/src
[DEBUG] Scanning base directory /home/tomcat/storage/Slider2/src
[DEBUG] Calling NCSSExecuter with src    : /home/tomcat/storage/Slider2/src
[DEBUG] Calling NCSSExecuter with output : /home/tomcat/live/webapps/maven/Slider2/javancss-raw-report.xml
[DEBUG] Calling NCSSExecuter with includes : null
[DEBUG] Calling NCSSExecuter with excludes : null

 

> 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
>            Assignee: Jean-Laurent de Morlhon
>
> 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


[jira] Commented: (MJNCSS-12) Source added using build-helper-maven-plugin is missing...?

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/MJNCSS-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=175065#action_175065 ]

Mathias Stein commented on MJNCSS-12:
-------------------------------------

I have the same problem.
The workaround using include tags did not work for me.

Whenever I try to add directories beside the sourceDirectory by adding include tags, nothing happens.
org.codehouse.plexus.util.DirectoryScanner seems to ignore all absolute or relative pathes pointing to directories outside the sourceDirectory and its sub directories.

Are there any plans to fix this issue?
Is there some workaound for the problem?

Ideally the fix would be based on ${project.compileSourceRoots} like e.g. the pmd-maven-plugin does already.
(The build-helper-maven-plugin goal add-source extends ${project.compileSourceRoots}.)

> 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
>            Assignee: Jean-Laurent de Morlhon
>
> 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



[jira] Assigned: (MJNCSS-12) Source added using build-helper-maven-plugin is missing...?

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Jean-Laurent de Morlhon reassigned MJNCSS-12:
---------------------------------------------

    Assignee:     (was: Jean-Laurent de Morlhon)

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



[jira] Updated: (MJNCSS-12) Source added using build-helper-maven-plugin is missing...?

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ 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