Issue Details (XML | Word | Printable)

Key: MJNCSS-4
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jean-Laurent de Morlhon
Reporter: James Burton
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 2.x JavaNCSS Plugin

JavaNCSS may not fully support 1.5 annotations

Created: 11/Aug/06 07:56 AM   Updated: 29/Oct/06 12:54 PM   Resolved: 29/Oct/06 12:54 PM
Component/s: None
Affects Version/s: 2.0-beta-1
Fix Version/s: 2.0-beta-2

Time Tracking:
Not Specified

File Attachments: 1. Text File error.txt (0.7 kB)
2. Text File LocationService.txt (0.7 kB)

Environment:
javancss-maven-plugin 2.0-beta-1 (which uses JavaNCSS 26.46)
JDK 1.5
Issue Links:
dependent
 


 Description  « Hide

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.



Jean-Laurent de Morlhon added a comment - 17/Aug/06 02:30 AM

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


James Burton added a comment - 09/Oct/06 04:26 AM

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.


Jean-Laurent de Morlhon added a comment - 10/Oct/06 03:55 PM

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.


Jean-Laurent de Morlhon added a comment - 29/Oct/06 12:54 PM

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>