Adish-

What version of maven are you using? I believe we currently have only tested building with maven 2.0.4 (which is a little out of date).


On Oct 23, 2007, at 11:45 AM, Adish Abnave wrote:

The o/p with "mvn -X compile is shown below, I also checked out the
source code under C:\test and tried to build but got the same exception.
[INFO] Building OpenJPA Kernel
[INFO]    task-segment: [compile]
[INFO]
---------------------------------------------------------------------- --
----
[DEBUG] javacc-maven-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::15 for project:
null:javacc-maven-plugin:maven-plugin:2.2 from the repository.
[DEBUG] org.codehaus.mojo:javacc-maven-plugin:maven-plugin:2.2:runtime
(selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for runtime)
[DEBUG]   org.codehaus.plexus:plexus-compiler-api:jar:1.5.1:runtime
(selected for runtime)
[DEBUG]     classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]   edu.ucla.cs.compilers:jtb:jar:1.3.2:runtime (selected for
runtime)
[DEBUG]   net.java.dev.javacc:javacc:jar:4.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
for runtime)
[DEBUG]     org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar: 2.0:runtime
(selected for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
(selected for runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtime)
[DEBUG] Configuring mojo
'org.codehaus.mojo:javacc-maven-plugin:2.2:jjtree' -->
[DEBUG]   (f) buildNodeFiles = false
[DEBUG]   (f) outputDirectory =
C:\openjpa\openjpa-kernel\target/generated-sources/jjtree/org/ apache/ope
njpa/kernel/jpql
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) sourceDirectory =
C:\openjpa\openjpa-kernel/src/main/jjtree/org/apache/openjpa/kernel/ jpql
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) timestampDirectory =
C:\openjpa\openjpa-kernel\target/generated-sources/jjtree-timestamp
[DEBUG] -- end configuration --
[INFO] [javacc:jjtree {execution: jjtree-jpql}]
[INFO]
---------------------------------------------------------------------- --
[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]
---------------------------------------------------------------------- --
[DEBUG] 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: 46 seconds
[INFO] Finished at: Tue Oct 23 11:33:57 PDT 2007
[INFO] Final Memory: 5M/10M
[INFO]
---------------------------------------------------------------------- --

-----Original Message-----
From: Marc Prud'hommeaux [mailto:[EMAIL PROTECTED] On Behalf Of
Marc Prud'hommeaux
Sent: Tuesday, October 23, 2007 11:30 AM
To: [email protected]
Subject: Re: Errors while building OpenJpa using maven "mvn package".


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.getIncluded S

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.executeGoalWithLi f

ec
ycle(DefaultLifecycleExecutor.java:475)

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

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan d

le
Failures(DefaultLifecycleExecutor.java:306)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen t

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