Maven 2.x JavaNCSS Plugin

JavaNCSS may not fully support 1.5 annotations

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0-beta-1
  • Fix Version/s: 2.0-beta-2
  • Component/s: None
  • Labels:
    None
  • Environment:
    javancss-maven-plugin 2.0-beta-1 (which uses JavaNCSS 26.46)
    JDK 1.5
  • Number of attachments :
    2

Description

I am using the 2.0-beta-1 with annotated Java 5 code using the JSR181 annotations.
http://xfire.codehaus.org/JSR+181+Annotations

Although my code compiles and runs fine, the JavaNCSS fails when trying to analyse it. I don't think it likes the annotations in the function parameters.

The code and ANT script output are attached for your interest. Although this is not a javancss-maven-plugin bug, I though it wise to bring it your attention.

I have also tested this with the latest JavaNCSS 27.48 outside of maven2 and confimed the problem still exists. I have emailed the author of JavaNCSS directly about this issue, since there is no bug tracking system I could find for it.

  1. error.txt
    11/Aug/06 7:56 AM
    0.7 kB
    James Burton
  2. LocationService.txt
    11/Aug/06 7:56 AM
    0.7 kB
    James Burton

Issue Links

Activity

Hide
Jean-Laurent de Morlhon added a comment -

Thanks for your insight.
We should keep this issue open, until a fix is provided by javancss.
Once done, we will update the plugin.

Show
Jean-Laurent de Morlhon added a comment - Thanks for your insight. We should keep this issue open, until a fix is provided by javancss. Once done, we will update the plugin.
Hide
James Burton added a comment -

The author has fixed this problem and a new version is available for download here...
http://www.kclee.de/clemens/java/javancss/javancss28.49.zip

I have tested this on the code in this bug report by installing 28.49 in my local repository and updating the dependency in your plugin. This worked for me.

I guess just the new JavaNCSS needs to be added to the central repository and the dependency info updated on your plugin.

Show
James Burton added a comment - The author has fixed this problem and a new version is available for download here... http://www.kclee.de/clemens/java/javancss/javancss28.49.zip I have tested this on the code in this bug report by installing 28.49 in my local repository and updating the dependency in your plugin. This worked for me. I guess just the new JavaNCSS needs to be added to the central repository and the dependency info updated on your plugin.
Hide
Jean-Laurent de Morlhon added a comment -

I have requested an upload on maven repositories of the JavaNCSS 28.49 version in issue MAVENUPLOAD-1173.
Once MAVENUPLOAD-1173 is fixed we will proceed with updating this plugin pom.

Show
Jean-Laurent de Morlhon added a comment - I have requested an upload on maven repositories of the JavaNCSS 28.49 version in issue MAVENUPLOAD-1173. Once MAVENUPLOAD-1173 is fixed we will proceed with updating this plugin pom.
Hide
Jean-Laurent de Morlhon added a comment -

pom has been updated with javancss 28.49.
A snapshot has been deployed at codehaus snapshots
use
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
<version>2.0-beta-2-SNAPSHOT</version>
</plugin>

Show
Jean-Laurent de Morlhon added a comment - pom has been updated with javancss 28.49. A snapshot has been deployed at codehaus snapshots use <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>javancss-maven-plugin</artifactId> <version>2.0-beta-2-SNAPSHOT</version> </plugin>

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: