openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreelatha S <sreelat...@yahoo.com>
Subject Re: Issue compiling OpenJPA source using Maven 3.0 (JDK 1.5)
Date Thu, 11 Nov 2010 09:41:40 GMT
Thank you for the responses, as suggested I tried to run mvn clean compile by pointing to Sun
JDK 1.6 and I am consistently getting the following error
when building the OpenJPA Kernel, is this a known problem, is there something I need to do
to get around this problem ? 

[INFO] ------------------------------------------------------------------------
[INFO] Building OpenJPA Kernel 2.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ openjpa-kernel ---
[INFO] Deleting file set: C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\openjpa-kernel\target
(included: [**], excluded: [])
[INFO]
[INFO] --- buildnumber-maven-plugin:1.0-beta-4:create (default) @ openjpa-kernel ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @ openjpa-kernel ---
[INFO]
[INFO] --- javacc-maven-plugin:2.4:jjtree-javacc (jjtree-javacc-jpql) @ openjpa-kernel ---
Java Compiler Compiler Version 4.0 (Tree Builder)
(type "jjtree" with no arguments for help)
Reading from file C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\openjpa-kernel\src\main\jjtree\org\apache\openjpa\kernel\jpql
\JPQL.jjt . . .
File "C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\
jpql\Node.java" does not exist.  Will create one.
Annotated grammar generated successfully in C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\openjpa-kernel\target\generated-sou
rces\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jj
Java Compiler Compiler Version 4.0 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\ope
njpa\kernel\jpql\JPQL.jj . . .
---------------------------------------------------
constituent[0]: file:/C:/install-location/Maven/apache-maven-3.0/lib/aether-api-1.7.jar
constituent[1]: file:/C:/install-location/Maven/apache-maven-3.0/lib/aether-connector-wagon-1.7.jar
constituent[2]: file:/C:/install-location/Maven/apache-maven-3.0/lib/aether-impl-1.7.jar
constituent[3]: file:/C:/install-location/Maven/apache-maven-3.0/lib/aether-spi-1.7.jar
constituent[4]: file:/C:/install-location/Maven/apache-maven-3.0/lib/aether-util-1.7.jar
constituent[5]: file:/C:/install-location/Maven/apache-maven-3.0/lib/commons-cli-1.2.jar
constituent[6]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-aether-provider-3.0.jar
constituent[7]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-artifact-3.0.jar
constituent[8]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-compat-3.0.jar
constituent[9]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-core-3.0.jar
constituent[10]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-embedder-3.0.jar
constituent[11]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-model-3.0.jar
constituent[12]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-model-builder-3.0.jar
constituent[13]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-plugin-api-3.0.jar
constituent[14]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-repository-metadata-3.0.jar
constituent[15]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-settings-3.0.jar
constituent[16]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-settings-builder-3.0.jar
constituent[17]: file:/C:/install-location/Maven/apache-maven-3.0/lib/nekohtml-1.9.6.2.jar
constituent[18]: file:/C:/install-location/Maven/apache-maven-3.0/lib/plexus-cipher-1.4.jar
constituent[19]: file:/C:/install-location/Maven/apache-maven-3.0/lib/plexus-component-annotations-1.5.5.jar
constituent[20]: file:/C:/install-location/Maven/apache-maven-3.0/lib/plexus-interpolation-1.14.jar
constituent[21]: file:/C:/install-location/Maven/apache-maven-3.0/lib/plexus-sec-dispatcher-1.3.jar
constituent[22]: file:/C:/install-location/Maven/apache-maven-3.0/lib/plexus-utils-2.0.4.jar
constituent[23]: file:/C:/install-location/Maven/apache-maven-3.0/lib/sisu-guice-2.1.7-noaop.jar
constituent[24]: file:/C:/install-location/Maven/apache-maven-3.0/lib/sisu-inject-bean-1.4.2.jar
constituent[25]: file:/C:/install-location/Maven/apache-maven-3.0/lib/sisu-inject-plexus-1.4.2.jar
constituent[26]: file:/C:/install-location/Maven/apache-maven-3.0/lib/wagon-file-1.0-beta-6.jar
constituent[27]: file:/C:/install-location/Maven/apache-maven-3.0/lib/wagon-http-lightweight-1.0-beta-6.jar
constituent[28]: file:/C:/install-location/Maven/apache-maven-3.0/lib/wagon-http-shared-1.0-beta-6.jar
constituent[29]: file:/C:/install-location/Maven/apache-maven-3.0/lib/wagon-provider-api-1.0-beta-6.jar
constituent[30]: file:/C:/install-location/Maven/apache-maven-3.0/lib/xercesMinimal-1.9.6.2.jar
---------------------------------------------------
Exception in thread "main" java.lang.Error: Invalid escape character at line 1 column 64.
        at org.javacc.parser.JavaCharStream.readChar(Unknown Source)
        at org.javacc.parser.JavaCCParserTokenManager.getNextToken(Unknown Source)
        at org.javacc.parser.JavaCCParser.jj_ntk(Unknown Source)
        at org.javacc.parser.JavaCCParser.javacc_options(Unknown Source)
        at org.javacc.parser.JavaCCParser.javacc_input(Unknown Source)
        at org.javacc.parser.Main.mainProgram(Unknown Source)
        at org.codehaus.mojo.javacc.JavaCC.execute(JavaCC.java:413)
        at org.codehaus.mojo.javacc.ToolFacade.run(ToolFacade.java:92)
        at org.codehaus.mojo.javacc.JJTreeJavaCCMojo.processGrammar(JJTreeJavaCCMojo.java:297)
        at org.codehaus.mojo.javacc.AbstractJavaCCMojo.execute(AbstractJavaCCMojo.java:333)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)



--- On Wed, 11/10/10, Michael Dick <michael.d.dick@gmail.com> wrote:

> From: Michael Dick <michael.d.dick@gmail.com>
> Subject: Re: Issue compiling OpenJPA source using Maven 3.0 (JDK 1.5)
> To: dev@openjpa.apache.org
> Date: Wednesday, November 10, 2010, 8:53 PM
> Looks like it's trunk (earlier
> versions use the compiler plugin at version
> 2.3.1, not 2.3.2), so you'll need jdk 6.
> 
> FWIW I just tried mvn clean compile with Maven 3.0, Sun JDK
> 6 and it
> completed with no errors.
> 
> -mike
> 
> On Wed, Nov 10, 2010 at 7:53 AM, Kevin Sutter <kwsutter@gmail.com>
> wrote:
> 
> > Hi,
> > What version of OpenJPA are you attempting to
> build?  The mainline trunk
> > build requires Java 6.  I know that Donald has
> been doing some
> > experimentation with Maven 3, but I'm not positive if
> it's ready yet.  The
> > current build dependencies are documented on this
> page:
> >
> > http://openjpa.apache.org/build-and-runtime-dependencies.html
> >
> > Kevin
> >
> > On Wed, Nov 10, 2010 at 7:09 AM, Sreelatha S <sreelathae@yahoo.com>
> wrote:
> >
> > >
> > > Hello,
> > >
> > > I am attempting to compile the source for the
> OpenJPA using Maven version
> > >
> > > Apache Maven 3.0 (r1004208; 2010-10-04
> 17:20:56+0530)
> > > Java version: 1.5.0
> > > Java home:
> C:\install-location\WebSphere\AppServer\java\jre
> > > Default locale: en_US, platform encoding: Cp1252
> > > OS name: "windows xp" version: "5.1 build 2600
> service pack 3" arch:
> > "x86"
> > > Famil
> > > y: "dos"
> > >
> > >
> > > And I constant get the following error
> > > [ERROR] -> [Help 1]
> > >
> org.apache.maven.lifecycle.LifecycleExecutionException:
> Failed to execute
> > > goal o
> > >
> rg.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> > > (default-compile) on
> > >  project openjpa-lib: Compilation failure
> > > Failure executing javac, but could not parse the
> error:
> > > javac: invalid flag: -s
> > > Usage: javac <options> <source
> files>
> > >
> > > Can some one tell me how to correct this.
> Thanks.
> > >
> > >
> > >
> > >
> >
> 


      

Mime
View raw message