Does anyone know of a solution for this problem? This is quite an old post but I'm having the same issue and am trying to figure out how to handle this.

Brent


Ronald Blaschke wrote:

Hi,

I'd like to automatically generate some java source files and thought
I could do it like this.

- Specify a "generated" source directory, eg target/generated-java in
project.xml
- In maven.xml:
 <preGoal name="java:compile">
   <attainGoal name="generate-source"/>
 </preGoal>

whereas "generate-source" does
- Copy plain java files from src/java to target/generated-java
- Generate source files as needed into target/generated-java

Unfortunately maven complains with
   [echo] No java source files to compile.

My question: How do I "refresh" the source file set maven uses?
<preGoal name="java:compile">
<attainGoal name="generate-source"/>
<attainGoal name="refresh-source-file-set"/> <!-- but how? -->
</preGoal>
Regards,
Ronald



-- Brent Hale Fishbowl Inventory www.fishbowlinventory.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to