[
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