I may have misconfigured it, but the
/home/malvis/code/test-checkout/orm/src/main/java reference comes for free,
since /home/.../orm is the project's base directory.
The sources are ONLY in src/generated/java. There are no sources in
src/main/java. The generated sources are generated prior to starting the
lifecycle, and not produced as a part of the build process at all.
When I move the sources to src/main/java and remove the "<includes>", they
compile as expected.
If the sources are in src/main/java and I have the <includes> configured, it
finds no sources to compile.
I just can't seem to get it to look in src/generated/java for java files.
Now that I'm away from the office, I thought to try to base my <include> on
the module's project ${basedir} or whatever it is in m2, but that'll have to
wait until tomorrow.
If someone else has done such a thing with success, would you mind posting
the relevant pom sections?
On 6/28/06, Edwin Punzalan <[EMAIL PROTECTED]> wrote:
I think you misconfigured it.
You've set the includes to search only in src/generate/java but it seems
like the generated sources are in src/main/java (from
/home/malvis/code/test-checkout/orm/src/main/java).
Hope that helps.
^_^
Mykel Alvis wrote:
> Sorry if this is a repeat, but I haven't located an answer on the web
> anywhere.
> I found http://jira.codehaus.org/browse/MCOMPILER-26 but it appears
> closed.
>
> In the pom of a module, I have included the following:
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <includes>
> <include>src/generated/java/**/*.java</include>
> </includes>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> This particular module has no code to compile in src/main/java.
> During a compile, I get :
>
> [DEBUG] (f) compileSourceRoots =
> [/home/malvis/code/test-checkout/orm/src/main/java]
> [DEBUG] (f) compilerId = javac
> [DEBUG] (f) debug = true
> [DEBUG] (f) fork = false
> [DEBUG] (f) includes = [src/generated/java/**/*.java]
> [DEBUG] (f) optimize = false
> [DEBUG] (f) outputDirectory =
> /home/malvis/code/test-checkout/orm/target/classes
> .
> .
> .
> [DEBUG] Output directory:
> /home/malvis/code/test-checkout/orm/target/classes
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
>
> Why would the compiler not recognize the need to compile the included
> sources?
> Is this a continuing compiler problem or am I configuring it wrong?
>
> Thanks,
> Mykel
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Never wear anything that panics the cat. -- P. J. O'Rourke