I'm overriding the templateDirectory element in my avro-maven-plugin like 
so:<templateDirectory>${project.basedir}/src/main/velocity/avro-code-gen/</templateDirectory>
This works correctly on linux but on Windows it results in...[INFO] --- 
avro-maven-plugin:1.7.5:idl-protocol (default) @ module ---62 [main] ERROR 
AvroVelocityLogChute - ResourceManager : unable to find resource 
'C:\Workspace\parent\module/src/main/velocity/avro-code-gen/record.vm' in any 
resource loader.[INFO] 
------------------------------------------------------------------------[INFO] 
BUILD FAILURE[INFO] 
------------------------------------------------------------------------[INFO] 
Total time: 1.969s[INFO] Finished at: Wed Jan 08 12:35:03 CST 2014[INFO] Final 
Memory: 6M/182M[INFO] 
------------------------------------------------------------------------[ERROR] 
Failed to execute goal org.apache.avro:avro-maven-plugin:1.7.5:idl-protocol 
(default) on project module: Execution default of goal 
org.apache.avro:avro-maven-plugin:1.7.5:idl-protocol failed: 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'C:\Workspace\parent\module/src/main/velocity/avro-code-gen/record.vm' 
-> [Help 1]
The problem seems to stem from the use of absolute paths. If I change the 
configuration to the 
following:<templateDirectory>src/main/velocity/avro-code-gen/</templateDirectory>
It works when running from within the child module. However, I can't keep it 
this way because it does not seem to work when run from the parent.
Is there a better way to go about this?

-- Allan                                          

Reply via email to