Hello,

I have a parser project for multiple languages. A file Parser.xml is used to
generate a series
of Parser.cup files through the generate-sources phase. This generation
actually cuts the
right bits from the .xml into a .cup file.

Next, the .cup file is processed-sources with the maven cup plugin to
generate a Parser.java
file. Next, something ismilar happens for the jflex (lexer) files. Finally,
this java files are compiled accordingly.

The problem is that when I change the xml file, maven does not know
something has changed
and that the cup file needs to be regenerated. It simply ignores the build
saying that "Parser.cup is upto date",
when in fact it should be because the .xml file has changed.

Any suggestions on how to ammend this, please? In fact, could any one point
out a clear
place that explains how to influence/interact with the various lifecycle
phases?

Best
Leo

Reply via email to