Quite funny, I finally found solution reading Java Puzzlers, a book
about Java pitfalls (Puzzle 15: Hello Whirled).
The problem is that javacc put filename in the generated code and my
file was in a "usr" directory.
>
D:\usr\projects\workspace\jackrabbit\target\generated-src\main\org\apache\jackrabbit\core\query\sql\JCRSQL.jj
A backslash (\) followed by the letter u denotes the start of a Unicode
escape.
So I had a compiler error.
Quoting the cited book:
"tools must not put Windows filenames into comments in generated Java
source files"
I don't know if we can instruct javacc to do so.
Best,
Roberto
Jukka Zitting wrote:
Hi,
On 9/4/06, Roberto Fonti <[EMAIL PROTECTED]> wrote:
I cannot build jackrabbit sources using maven.
I get the following error:
[...]
Invalid escape character at line 1 column 64.
[...]
I tried both jdk1.4 and jdk1.5, maven 1.0.2 and maven 1.1 on Windows XP.
I have no problems building Jackrabbit on Windows XP. My environment
is Maven 1.0.2 with JDK 1.6.
It might be an issue with the Maven 1.1-beta-3 version you're using,
it seems to come with a more recent version of the Maven JavaCC plugin
than 1.0.2. And having a more recent plugin version in the Maven cache
probably makes also Maven 1.0.2 use that so you end up with the same
error. (Just guessing here... :-)
Try clearing the .maven/cache directory and running "maven clean jar"
using Maven 1.0.2.
BR,
Jukka Zitting