Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 50989 invoked from network); 6 Jul 2008 11:04:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2008 11:04:57 -0000 Received: (qmail 85273 invoked by uid 500); 6 Jul 2008 11:04:58 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 85256 invoked by uid 500); 6 Jul 2008 11:04:58 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 85245 invoked by uid 99); 6 Jul 2008 11:04:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2008 04:04:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.129.177] (HELO exsmtp01.exserver.dk) (195.69.129.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2008 11:04:04 +0000 Received: from EXVS04.exserver.dk ([10.10.10.85]) by exsmtp01.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Sun, 6 Jul 2008 13:02:39 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Can not compile examples from 1.4 snapshot Date: Sun, 6 Jul 2008 13:03:06 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D204BD7EBE@EXVS04.exserver.dk> In-Reply-To: <48709CAD.7090906@die-schneider.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Can not compile examples from 1.4 snapshot Thread-Index: AcjfUeFzYDpB9Kp4TYimc5FzAjphyQABXpNQ From: "Claus Ibsen" To: X-OriginalArrivalTime: 06 Jul 2008 11:02:39.0483 (UTC) FILETIME=[CE35A4B0:01C8DF57] X-Virus-Checked: Checked by ClamAV on apache.org Hi Yes it does take time to do a clean rebuild ;) And you need to increase = the memory settings on Maven to let it be able to compile it all. The snapshorts is deployed on a public maven server http://activemq.apache.org/camel/download.html Apache snapshots http://people.apache.org/repo/m2-snapshot-repository http://people.apache.org/repo/m2-snapshot-repository/org/apache/camel/apa= che-camel/ So you can add the apache m2 snapshot in your pom.xml and you are off to = go. apache.snapshots Apache Development Snapshot Repository http://people.apache.org/repo/m2-snapshot-repository false true Med venlig hilsen =20 Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Christian Schneider [mailto:chris@die-schneider.net]=20 Sent: 6. juli 2008 12:22 To: camel-user@activemq.apache.org Subject: Re: Can not compile examples from 1.4 snapshot I just tried to compile the snapshot from source. The first thing I must = say ... it takes ages. So this is sure no way to get people to test the=20 snapshots. The other thing is that I am getting an out of memory error at the camel = cxf example while compiling. I think it would be better if you could deploy the snapshot to a maven=20 repository. So people could use the binary download wwithout compiling=20 all themselves. In any case there should be a description somewhere that the examples=20 from the binary distro will only run if you first compile from source.=20 For me this was not clear at the start. Greetings Christian ----- [INFO] Compiling 27 source files to=20 C:\java\apache-camel-1.4-SNAPSHOT\src\examples\camel-example-cxf\target\c= lasses [INFO]=20 ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO]=20 ------------------------------------------------------------------------ [INFO] Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: Java heap space at=20 com.sun.tools.javac.zip.ZipFileIndex$ZipDirectory.findCENRecord(ZipFileIn= dex.java:698) at=20 com.sun.tools.javac.zip.ZipFileIndex$ZipDirectory.(ZipFileIndex.jav= a:665) at=20 com.sun.tools.javac.zip.ZipFileIndex.checkIndex(ZipFileIndex.java:260) at=20 com.sun.tools.javac.zip.ZipFileIndex.(ZipFileIndex.java:209) at=20 com.sun.tools.javac.zip.ZipFileIndex.getZipFileIndex(ZipFileIndex.java:11= 5) at=20 com.sun.tools.javac.util.DefaultFileManager.openArchive(DefaultFileManage= r.java:645) at=20 com.sun.tools.javac.util.DefaultFileManager.listDirectory(DefaultFileMana= ger.java:325) at=20 com.sun.tools.javac.util.DefaultFileManager.list(DefaultFileManager.java:= 872) at = com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2077) at=20 com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1781) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386) at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:272) at=20 com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)= at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:236) at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:250) at com.sun.tools.javac.comp.Enter.complete(Enter.java:444) at com.sun.tools.javac.comp.Enter.main(Enter.java:429) at=20 com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) at=20 com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) at com.sun.tools.javac.main.Main.compile(Main.java:353) at com.sun.tools.javac.main.Main.compile(Main.java:279) at com.sun.tools.javac.main.Main.compile(Main.java:270) at com.sun.tools.javac.Main.compile(Main.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at=20 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at=20 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at=20 org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCo= mpiler.java:420) at=20 org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.ja= va:141) at=20 org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo= .java:493) at=20 org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) at=20 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMan= ager.java:451) Willem Jiang schrieb: > Hi , > > If you are running the example for source code, you'd better run "mvn=20 > install -Dtest=3Dfalse" from the root directory to install the = snapshot=20 > artifacts in your local maven repository first. > > Willem > > > Christian Schneider wrote: >> I have tried to run the examples from the 1.4 snapshot. Like=20 >> described in >> http://activemq.apache.org/camel/running-examples.html >> >> mvn exec:java >> >> I get the following error: >> Cannot find parent: org.apache.camel:camel-parent for project:=20 >> null:examples:pom:null for project null:examples: >> >> It seems the examples need a parent pom that is not existing in the=20 >> distribution. So probably this can be fixed by adding the parent pom=20 >> to the distribution. Though I think the concept of a parent pom for=20 >> examples is a bad thing in general. >> >> As people often want to start their own project with the example code = >> I think each example should be able to exist on it=B4s own and so it=20 >> should not need a parent pom. >> Is this a good idea? >> >> Greeting >> >> Christian >> > >