I've never seen an error like that, and I just successfully checked out and built on Windows.

Can you run with with "mvn -X compile" and show us the output?

Also, you might want to experiment with putting the source root in a different directory on the off chance that that changes anything.



On Oct 23, 2007, at 10:26 AM, Adish Abnave wrote:

I checkout the open jpa source code from the svn repository on my c:\
drive.

I am trying to build the project with "mvn clean package" command in the
c:\openjpa directory.

I get the following exception related to the source directory path. I am
not sure why does it resolve the path incorrectly.

[ERROR] FATAL ERROR

[INFO]
---------------------------------------------------------------------- --

[INFO] basedir
C:\openjpa\openjpa-kernel\C:\openjpa\openjpa-kernel\src\main\jjtree \org\
apache\openjpa\kernel\jpql does not exist

[INFO]
---------------------------------------------------------------------- --

[INFO] Trace

java.lang.IllegalStateException: basedir
C:\openjpa\openjpa-kernel\C:\openjpa\openjpa-kernel\src\main\jjtree \org\
apache\openjpa\kernel\jpql does not exist

        at
org.codehaus.plexus.util.DirectoryScanner.scan (DirectoryScanner.java:542
)

        at
org.codehaus.plexus.compiler.util.scan.AbstractSourceInclusionScanner. sc
anForSources(AbstractSourceInclusionScanner.java:78)

        at
org.codehaus.plexus.compiler.util.scan.StaleSourceScanner.getIncludedS ou
rces(StaleSourceScanner.java:84)

        at
org.codehaus.mojo.javacc.JJTreeMojo.computeStaleGrammars (JJTreeMojo.java
:349)

        at
org.codehaus.mojo.javacc.JJTreeMojo.execute(JJTreeMojo.java:198)

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginMa
nager.java:412)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (Default
LifecycleExecutor.java:534)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif ec
ycle(DefaultLifecycleExecutor.java:475)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultL
ifecycleExecutor.java:454)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand le
Failures(DefaultLifecycleExecutor.java:306)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment s(
DefaultLifecycleExecutor.java:273)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifec
ycleExecutor.java:140)

        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 115)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.jav
a:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessor
Impl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

[INFO]
---------------------------------------------------------------------- --

[INFO] Total time: 1 minute 16 seconds

[INFO] Finished at: Tue Oct 23 09:57:25 PDT 2007

[INFO] Final Memory: 8M/32M

[INFO]
---------------------------------------------------------------------- --



The task being executed is in the openjpa-kernel\pom.xml,

<plugin>

                <groupId>org.codehaus.mojo</groupId>

                <artifactId>javacc-maven-plugin</artifactId>

                <executions>

                    <execution>

                        <id>jjtree-jpql</id>

                        <phase>generate-sources</phase>

                        <configuration>

                            <sourceDirectory>
${basedir}/src/main/jjtree/org/apache/openjpa/kernel/jpql</ sourceDirecto
ry>

                            <outputDirectory>
${project.build.directory}/generated-sources/jjtree/org/apache/ openjpa/k
ernel/jpql</outputDirectory>

                            <buildNodeFiles>false</buildNodeFiles>

                        </configuration>

                        <goals>

                            <goal>jjtree</goal>

                        </goals>

                    </execution>

                    <execution>

                        <id>javacc-jpql</id>

                        <phase>generate-sources</phase>

                        <configuration>

                            <sourceDirectory>


${project.build.directory}/generated-sources/jjtree/org/apache/ openjpa/k
ernel/jpql</sourceDirectory>

                            <outputDirectory>


${project.build.directory}/generated-sources/javacc/org/apache/ openjpa/k
ernel/jpql</outputDirectory>

                        </configuration>

                        <goals>

                            <goal>javacc</goal>

                        </goals>

                    </execution>

                </executions>

            </plugin>

Any help will be greatly appreciated.



Adish


























































Reply via email to