You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Neil Blue <Ne...@denovopharma.com> on 2003/06/24 18:54:22 UTC
Problem with preGoal
Using MAVEN_1_0_B9.
I have a pre goal set up as follows:
<preGoal name="java:compile">
<attainGoal name="generateSrc"/>
<sleep seconds="10"/>
</preGoal>
where the goal generate source will generate source code and put it in the ${maven.src.dir}/java directory.
On running 'maven java:compile' for this project, the source is successfully generated, but then get the message [echo] No java source files to compile.
If I run the same goal again (and any subsequent time thereafter), then the java source files are compiled successfully.
I have added a sleep to allow myself time to check the files are on the filesytem, and this certainly seems to be the case. Despite this the java:compile goal still does not see the source files if it is the first time the goal has been run.
I have also tried the following:
<preGoal name="java:compile">
<attainGoal name="copySrc"/>
</preGoal>
where copy src simply copies the required files to the ${maven.src.dir}/java, and get the same results.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem with preGoal
Posted by Alexey Demakov <de...@ispras.ru>.
Does generateSrc add location of generated sources to maven.compile.src.set?
It's better to generate sources to subdir of maven.build.dir
Search plugins for examples (antlr)
Best regards,
Alexey
---
Alexey Demakov, ISP RAS
www: http://redverst.ispras.ru
e-mail: demakov@ispras.ru
ICQ 740187
----- Original Message -----
From: "Neil Blue" <Ne...@denovopharma.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Tuesday, June 24, 2003 8:54 PM
Subject: Problem with preGoal
>
>
> Using MAVEN_1_0_B9.
>
> I have a pre goal set up as follows:
>
> <preGoal name="java:compile">
> <attainGoal name="generateSrc"/>
> <sleep seconds="10"/>
> </preGoal>
>
> where the goal generate source will generate source code and put it in the ${maven.src.dir}/java directory.
>
> On running 'maven java:compile' for this project, the source is successfully generated, but then get the message [echo] No java
source files to compile.
>
> If I run the same goal again (and any subsequent time thereafter), then the java source files are compiled successfully.
>
> I have added a sleep to allow myself time to check the files are on the filesytem, and this certainly seems to be the case.
Despite this the java:compile goal still does not see the source files if it is the first time the goal has been run.
>
> I have also tried the following:
>
> <preGoal name="java:compile">
> <attainGoal name="copySrc"/>
> </preGoal>
>
> where copy src simply copies the required files to the ${maven.src.dir}/java, and get the same results.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org