ochafik/nativelibs4java — Issue #233: Build failure - can't find \org\anarres\cpp\Main.java
Author: finson
Created: 2012-01-13 04:09:03+00:00
State: open

Olivier: I'm trying to rebuild nativelibs4java with the latest clone from GitHub. It's not working too well at the moment. The first error message that pops out is regarding \org\anarres\cpp\Main.java. This file does exist in my working directory but apparently is not where the resource manager is looking.

File does exist: 'E:\Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\src\main\velocity\org\anarres\cpp\Main.java'
Resource is not found: 'main\velocity\org\anarres\cpp\Main.java'

Any suggestions?

Thanks. Doug

=======================================================================

$ mvn install -DskipTests > mvn-out.txt
Jan 12, 2012 7:31:32 PM org.apache.velocity.runtime.log.JdkLogChute log
INFO: FileResourceLoader : adding path 'E:\Users\finson\git\nativelibs4java\libraries\BridJ\src'
Jan 12, 2012 7:31:50 PM org.apache.velocity.runtime.log.JdkLogChute log
SEVERE: ResourceManager : unable to find resource 'main\velocity\org\anarres\cpp\Main.java' in any resource loader.
org.apache.maven.plugin.MojoExecutionException: Failed to execute template 'E:\Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\src\main\veloci
ty\org\anarres\cpp\Main.java'
at com.nativelibs4java.velocity.VelocityMojo.executeAll(VelocityMojo.java:243)
[...snip...]

=======================================================================
and from mvn-out.txt:

[...snip...]
[INFO] ------------------------------------------------------------------------
[INFO] Building Anarres JCPP (with JNAerator modifications)
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-maven}]
[INFO] [velocity:generate {execution: default}]
Velocity root path = E:\Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\src
[INFO] Found 4 files in 'E:\Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\src\main\velocity'...
[INFO] Executing template 'Main.java'...
[INFO] Executing template 'Preprocessor.java'...
[INFO] Executing template 'Token.java'...
[INFO] Executing template 'Version.java'...
Velocity root path = E:\Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\src
[INFO] Found 0 files in 'E:\Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\src\test\velocity'...
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 25 source files to E:\Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\src\main\java\org\anarres\cpp\FileLexerSource.java:[28,29] cannot find symbol
symbol : class Token
location: package org.anarres.cpp
[ERROR] \Users\finson\git\nativelibs4java\libraries\jnaerator\anarres\src\main\java\org\anarres\cpp\LexerSource.java:[27,29] cannot find symbol
symbol : class Token
location: package org.anarres.cpp
[...snip...]