Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 39303 invoked from network); 11 Nov 2010 09:41:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 09:41:42 -0000 Received: (qmail 74971 invoked by uid 500); 11 Nov 2010 09:42:13 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 74812 invoked by uid 500); 11 Nov 2010 09:42:12 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 74804 invoked by uid 99); 11 Nov 2010 09:42:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 09:42:12 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.48.207] (HELO web52604.mail.re2.yahoo.com) (206.190.48.207) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 11 Nov 2010 09:42:02 +0000 Received: (qmail 81629 invoked by uid 60001); 11 Nov 2010 09:41:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1289468500; bh=SQQwa4BMFFNv5G7BSt+g+EtdVFkh8FsKXX4B5H8Ukkw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=G1zwh/OStt6V8u6pA5z8D7/8RzjAH8lccVj6/xm0307Vvd2TIaUFKCP//Mb4FRgjizWSa13hYPem864Qq6ASPivj2Ecpc0somTUmrYOge4HE0ULiF5E5JxjSO+O4/jjv3l8ZDFluyHYcXAy+64/SrznNyu/meeYb/dOQmUPvL8k= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uhRRCuv0cHjyMTAtrP9RKBD6dw/hrnyBlBroXPAOBu6cy+aO8YWdR5HzAvGsty15VjqldIV+oZSJ3GDs59ClDwQ8SAFc3cMgtkijrPd74R/pbioLcrLY/GSuF94hUPO+5gb0TO+H6U0jgtlmWAPGiIWnNmktr59uZ6ZSynKu6Hs=; Message-ID: <535496.81202.qm@web52604.mail.re2.yahoo.com> X-YMail-OSG: R_fXN58VM1mwxdD8rRB3CNSbtZ6GPioBKHDPnBjkgye0DMc jHO9bv1uX3AkT3ujf_1fJ919ipV8RvomritnZRyeVy7x2.k4M2g3uWBlEHMM akYzhAaOMKOJbhoOZBA80ueI4G_KtGa5ZU4XjkLhbYmYJIFoL_NffXyahM1k ICC1Ak1fXmQJtTvEmkenJgpoXDAa_0gGlLqbxKeSEMrHFyQGzP0uSn315wTy MuS40SZhqx4aErAz4C4u4G5P7U0hWL8a1jAqJolia.WSzJRKWmWEK_6CB3ut CXsEs0IYIDXG.PdiwiNMiX4cnE1WsyQuTdrUgvBnlWOQZd.SVQapWL3TUxw0 FnOFW1Lsm2cyBCW59eMiLr87FNu3znXhqOQ-- Received: from [122.248.163.1] by web52604.mail.re2.yahoo.com via HTTP; Thu, 11 Nov 2010 01:41:40 PST X-Mailer: YahooMailClassic/11.4.9 YahooMailWebService/0.8.107.285259 Date: Thu, 11 Nov 2010 01:41:40 -0800 (PST) From: Sreelatha S Subject: Re: Issue compiling OpenJPA source using Maven 3.0 (JDK 1.5) To: dev@openjpa.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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 erro= r=0Awhen building the OpenJPA Kernel, is this a known problem, is there som= ething I need to do to get around this problem ? =0A=0A[INFO] -------------= -----------------------------------------------------------=0A[INFO] Buildi= ng OpenJPA Kernel 2.1.0-SNAPSHOT=0A[INFO] ---------------------------------= ---------------------------------------=0A[INFO]=0A[INFO] --- maven-clean-p= lugin:2.3:clean (default-clean) @ openjpa-kernel ---=0A[INFO] Deleting file= set: C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\openjpa-= kernel\target (included: [**], excluded: [])=0A[INFO]=0A[INFO] --- buildnum= ber-maven-plugin:1.0-beta-4:create (default) @ openjpa-kernel ---=0A[INFO]= =0A[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @ openjpa-= kernel ---=0A[INFO]=0A[INFO] --- javacc-maven-plugin:2.4:jjtree-javacc (jjt= ree-javacc-jpql) @ openjpa-kernel ---=0AJava Compiler Compiler Version 4.0 = (Tree Builder)=0A(type "jjtree" with no arguments for help)=0AReading from = file C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\openjpa-k= ernel\src\main\jjtree\org\apache\openjpa\kernel\jpql=0A\JPQL.jjt . . .=0AFi= le "C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\openjpa-ke= rnel\target\generated-sources\jjtree\org\apache\openjpa\kernel\=0Ajpql\Node= .java" does not exist. Will create one.=0AAnnotated grammar generated succ= essfully in C:\user-folder\work\OpenSource\svn-work-folder\openjpa-trunk\op= enjpa-kernel\target\generated-sou=0Arces\jjtree\org\apache\openjpa\kernel\j= pql\JPQL.jj=0AJava Compiler Compiler Version 4.0 (Parser Generator)=0A(type= "javacc" with no arguments for help)=0AReading from file C:\user-folder\wo= rk\OpenSource\svn-work-folder\openjpa-trunk\openjpa-kernel\target\generated= -sources\jjtree\org\apache\ope=0Anjpa\kernel\jpql\JPQL.jj . . .=0A---------= ------------------------------------------=0Aconstituent[0]: file:/C:/insta= ll-location/Maven/apache-maven-3.0/lib/aether-api-1.7.jar=0Aconstituent[1]:= file:/C:/install-location/Maven/apache-maven-3.0/lib/aether-connector-wago= n-1.7.jar=0Aconstituent[2]: file:/C:/install-location/Maven/apache-maven-3.= 0/lib/aether-impl-1.7.jar=0Aconstituent[3]: file:/C:/install-location/Maven= /apache-maven-3.0/lib/aether-spi-1.7.jar=0Aconstituent[4]: file:/C:/install= -location/Maven/apache-maven-3.0/lib/aether-util-1.7.jar=0Aconstituent[5]: = file:/C:/install-location/Maven/apache-maven-3.0/lib/commons-cli-1.2.jar=0A= constituent[6]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-= aether-provider-3.0.jar=0Aconstituent[7]: file:/C:/install-location/Maven/a= pache-maven-3.0/lib/maven-artifact-3.0.jar=0Aconstituent[8]: file:/C:/insta= ll-location/Maven/apache-maven-3.0/lib/maven-compat-3.0.jar=0Aconstituent[9= ]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-core-3.0.jar= =0Aconstituent[10]: file:/C:/install-location/Maven/apache-maven-3.0/lib/ma= ven-embedder-3.0.jar=0Aconstituent[11]: file:/C:/install-location/Maven/apa= che-maven-3.0/lib/maven-model-3.0.jar=0Aconstituent[12]: file:/C:/install-l= ocation/Maven/apache-maven-3.0/lib/maven-model-builder-3.0.jar=0Aconstituen= t[13]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-plugin-ap= i-3.0.jar=0Aconstituent[14]: file:/C:/install-location/Maven/apache-maven-3= .0/lib/maven-repository-metadata-3.0.jar=0Aconstituent[15]: file:/C:/instal= l-location/Maven/apache-maven-3.0/lib/maven-settings-3.0.jar=0Aconstituent[= 16]: file:/C:/install-location/Maven/apache-maven-3.0/lib/maven-settings-bu= ilder-3.0.jar=0Aconstituent[17]: file:/C:/install-location/Maven/apache-mav= en-3.0/lib/nekohtml-1.9.6.2.jar=0Aconstituent[18]: file:/C:/install-locatio= n/Maven/apache-maven-3.0/lib/plexus-cipher-1.4.jar=0Aconstituent[19]: file:= /C:/install-location/Maven/apache-maven-3.0/lib/plexus-component-annotation= s-1.5.5.jar=0Aconstituent[20]: file:/C:/install-location/Maven/apache-maven= -3.0/lib/plexus-interpolation-1.14.jar=0Aconstituent[21]: file:/C:/install-= location/Maven/apache-maven-3.0/lib/plexus-sec-dispatcher-1.3.jar=0Aconstit= uent[22]: file:/C:/install-location/Maven/apache-maven-3.0/lib/plexus-utils= -2.0.4.jar=0Aconstituent[23]: file:/C:/install-location/Maven/apache-maven-= 3.0/lib/sisu-guice-2.1.7-noaop.jar=0Aconstituent[24]: file:/C:/install-loca= tion/Maven/apache-maven-3.0/lib/sisu-inject-bean-1.4.2.jar=0Aconstituent[25= ]: file:/C:/install-location/Maven/apache-maven-3.0/lib/sisu-inject-plexus-= 1.4.2.jar=0Aconstituent[26]: file:/C:/install-location/Maven/apache-maven-3= .0/lib/wagon-file-1.0-beta-6.jar=0Aconstituent[27]: file:/C:/install-locati= on/Maven/apache-maven-3.0/lib/wagon-http-lightweight-1.0-beta-6.jar=0Aconst= ituent[28]: file:/C:/install-location/Maven/apache-maven-3.0/lib/wagon-http= -shared-1.0-beta-6.jar=0Aconstituent[29]: file:/C:/install-location/Maven/a= pache-maven-3.0/lib/wagon-provider-api-1.0-beta-6.jar=0Aconstituent[30]: fi= le:/C:/install-location/Maven/apache-maven-3.0/lib/xercesMinimal-1.9.6.2.ja= r=0A---------------------------------------------------=0AException in thre= ad "main" java.lang.Error: Invalid escape character at line 1 column 64.=0A= at org.javacc.parser.JavaCharStream.readChar(Unknown Source)=0A = at org.javacc.parser.JavaCCParserTokenManager.getNextToken(Unknown Sour= ce)=0A at org.javacc.parser.JavaCCParser.jj_ntk(Unknown Source)=0A = at org.javacc.parser.JavaCCParser.javacc_options(Unknown Source)=0A = at org.javacc.parser.JavaCCParser.javacc_input(Unknown Source)=0A = at org.javacc.parser.Main.mainProgram(Unknown Source)=0A at org.= codehaus.mojo.javacc.JavaCC.execute(JavaCC.java:413)=0A at org.codeh= aus.mojo.javacc.ToolFacade.run(ToolFacade.java:92)=0A at org.codehau= s.mojo.javacc.JJTreeJavaCCMojo.processGrammar(JJTreeJavaCCMojo.java:297)=0A= at org.codehaus.mojo.javacc.AbstractJavaCCMojo.execute(AbstractJava= CCMojo.java:333)=0A at org.apache.maven.plugin.DefaultBuildPluginMan= ager.executeMojo(DefaultBuildPluginManager.java:107)=0A at org.apach= e.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)=0A = at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecu= tor.java:148)=0A at org.apache.maven.lifecycle.internal.MojoExecutor= .execute(MojoExecutor.java:140)=0A at org.apache.maven.lifecycle.int= ernal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)= =0A at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.bu= ildProject(LifecycleModuleBuilder.java:59)=0A at org.apache.maven.li= fecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java= :183)=0A at org.apache.maven.lifecycle.internal.LifecycleStarter.exe= cute(LifecycleStarter.java:161)=0A at org.apache.maven.DefaultMaven.= doExecute(DefaultMaven.java:314)=0A at org.apache.maven.DefaultMaven= .execute(DefaultMaven.java:151)=0A at org.apache.maven.cli.MavenCli.= execute(MavenCli.java:445)=0A at org.apache.maven.cli.MavenCli.doMai= n(MavenCli.java:168)=0A at org.apache.maven.cli.MavenCli.main(MavenC= li.java:132)=0A at sun.reflect.NativeMethodAccessorImpl.invoke0(Nati= ve Method)=0A at sun.reflect.NativeMethodAccessorImpl.invoke(NativeM= ethodAccessorImpl.java:39)=0A at sun.reflect.DelegatingMethodAccesso= rImpl.invoke(DelegatingMethodAccessorImpl.java:25)=0A at java.lang.r= eflect.Method.invoke(Method.java:597)=0A at org.codehaus.plexus.clas= sworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)=0A at or= g.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)= =0A at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExi= tCode(Launcher.java:409)=0A at org.codehaus.plexus.classworlds.launc= her.Launcher.main(Launcher.java:352)=0A=0A=0A=0A--- On Wed, 11/10/10, Micha= el Dick wrote:=0A=0A> From: Michael Dick =0A> Subject: Re: Issue compiling OpenJPA source using M= aven 3.0 (JDK 1.5)=0A> To: dev@openjpa.apache.org=0A> Date: Wednesday, Nove= mber 10, 2010, 8:53 PM=0A> Looks like it's trunk (earlier=0A> versions use = the compiler plugin at version=0A> 2.3.1, not 2.3.2), so you'll need jdk 6.= =0A> =0A> FWIW I just tried mvn clean compile with Maven 3.0, Sun JDK=0A> 6= and it=0A> completed with no errors.=0A> =0A> -mike=0A> =0A> On Wed, Nov 1= 0, 2010 at 7:53 AM, Kevin Sutter =0A> wrote:=0A> =0A> >= Hi,=0A> > What version of OpenJPA are you attempting to=0A> build?=A0 The = mainline trunk=0A> > build requires Java 6.=A0 I know that Donald has=0A> b= een doing some=0A> > experimentation with Maven 3, but I'm not positive if= =0A> it's ready yet.=A0 The=0A> > current build dependencies are documented= on this=0A> page:=0A> >=0A> > http://openjpa.apache.org/build-and-runtime-= dependencies.html=0A> >=0A> > Kevin=0A> >=0A> > On Wed, Nov 10, 2010 at 7:0= 9 AM, Sreelatha S =0A> wrote:=0A> >=0A> > >=0A> > > H= ello,=0A> > >=0A> > > I am attempting to compile the source for the=0A> Ope= nJPA using Maven version=0A> > >=0A> > > Apache Maven 3.0 (r1004208; 2010-1= 0-04=0A> 17:20:56+0530)=0A> > > Java version: 1.5.0=0A> > > Java home:=0A> = C:\install-location\WebSphere\AppServer\java\jre=0A> > > Default locale: en= _US, platform encoding: Cp1252=0A> > > OS name: "windows xp" version: "5.1 = build 2600=0A> service pack 3" arch:=0A> > "x86"=0A> > > Famil=0A> > > y: "= dos"=0A> > >=0A> > >=0A> > > And I constant get the following error=0A> > >= [ERROR] -> [Help 1]=0A> > >=0A> org.apache.maven.lifecycle.LifecycleExecut= ionException:=0A> Failed to execute=0A> > > goal o=0A> > >=0A> rg.apache.ma= ven.plugins:maven-compiler-plugin:2.3.2:compile=0A> > > (default-compile) o= n=0A> > >=A0 project openjpa-lib: Compilation failure=0A> > > Failure execu= ting javac, but could not parse the=0A> error:=0A> > > javac: invalid flag:= -s=0A> > > Usage: javac files>=0A> > >=0A> > > Can s= ome one tell me how to correct this.=0A> Thanks.=0A> > >=0A> > >=0A> > >=0A= > > >=0A> >=0A> =0A=0A=0A