I'm not sure what you are using to generate sources, but it must be adding the generated sources to the source path (<maven:addPath />), and when that is skipped, it is not attempting to compile them at all.
You'll need to get that tag called first - either by adding the preGoal yourself, or calling the appropriate goal from the source generator. - Brett On Wed, 23 Feb 2005 10:49:21 +0100, Pieter Van Gorp <[EMAIL PROTECTED]> wrote: > Hi all, > if I should give any extra info to get this question answered, please > let me know. > > In the meanwhile, I'm driving the on-demand recompilation of the > selected sources (the generated ones) from ANT again. Is it perhaps > impossible (or undesirable) to use Maven exclusively (= only maven.xml > and project.xml but no ANT build.xml) for our project requirements? > > Kind regards, > Pieter Van Gorp > http://motmot.sourceforge.net/ > > ---------- Forwarded message ---------- > From: Pieter Van Gorp <[EMAIL PROTECTED] > > Date: Mon, 21 Feb 2005 21:08:02 +0100 > Subject: Forcing a recompile of Java sources > To: [email protected] > > Hi, since recently we've moved the build process of our MDA tool from > ANT to Maven. I can't find out how we should set up our build process > to get the effect of our previous ANT target "build-gensrc" which > compiled the generated source of a particular model without first > regenerating it. We need this kind of build target because it is > useful to include manual debug output in generated sources. > > I hoped that "maven java:compile" would do the trick for us but > apparantly Maven does not notice the manual changes to the generated > Java file: > [echo] No java source files to compile > > I can't imagine that there's a bug in Maven concerning the comparison > between the time stamp of the Java sources with the corresponding > classfiles so probably I'm doing something wrong. > > Can anybody please help us understanding the Maven approach to manage > builds for generated applications better? > > Thanks a lot in advance, > -- > Pieter Van Gorp > Teaching and Research Assistant > FOrmal Techniques in Software engineering (FOTS) > University of Antwerp > Middelheimlaan 1 > 2020 Antwerpen - Belgium > Office: G.304 > Phone: +32 3 265 38 71 > Fax: +32 3 265 37 77 > http://www.fots.ua.ac.be/~pvgorp/research/ > http://motmot.sourceforge.net/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
