You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arnaud Bailly <ab...@norsys.fr> on 2006/03/16 23:17:18 UTC

Compiling generated sources

Hello,
I have made my first maven2.0 plugin which is supposed to generate
sources from a descriptor. Everything works ok as far as generation is
concerned and I followed
http://maven.apache.org/guides/mini/guide-generating-sources.html as
closely as possible. BTW, I was very pleased with the ease with which I
created and inserted my plugin into the lifecycle : compared with the
pain and hassle of maven1.X jelly scripts and byzantine project
layout, it is  direct leap from walking to ferrari driving !

The (very small !) problem is : nothing gets compiled if I put the relative path
which is by default
${project.build.directory}/generated-sources/fidl. I had to write :

  project.addCompileSourceRoot(outputDir.getAbsolutePath());

instead of 

  project.addCompileSourceRoot(outputDir.getPath());

Is this a feature, am I missing something ? I would think that the
expression would produce a correct relative path. 

thx for info,
-- 
Arnaud Bailly, Dr. - Ingénieur de Recherche 
NORSYS 
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Mob : (33) 6 17 12 19 78
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org