Export to GitHub

maven-annotation-plugin - issue #1

system dependent path separator character


Posted on Mar 12, 2009 by Quick Monkey

The plugin does not work on Linux. The error message is: "error: Annotation processor 'xxx.Yyy' not found"

The error is caused by the path separator character, which is not ";" on Linux.

In AnnotationProcessorMojo.java, the line: > result.append( pathElements.get(i) ).append(';'); must be replaced by: > result.append( pathElements.get(i) ).append( File.pathSeparatorChar );

Comment #1

Posted on Oct 19, 2009 by Happy Cat

The plugin used a harcoded ';' separator for its classpath. This separator only works on Windows, and this is now changed to use File.pathSeparator.

Attachments

Comment #2

Posted on Nov 8, 2009 by Quick Rabbit

(No comment was entered for this change.)

Comment #3

Posted on Nov 8, 2009 by Quick Rabbit

thanks for feedback

your patch applied

Status: Fixed

Labels:
Type-Defect Priority-Medium