Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 46708 invoked from network); 6 Jul 2008 10:21:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2008 10:21:54 -0000 Received: (qmail 71675 invoked by uid 500); 6 Jul 2008 10:21:54 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 71652 invoked by uid 500); 6 Jul 2008 10:21:54 -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 71641 invoked by uid 99); 6 Jul 2008 10:21:54 -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 03:21:54 -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 [62.75.158.78] (HELO mail.liquid-reality.de) (62.75.158.78) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jul 2008 10:21:02 +0000 Received: from [10.0.0.10] (HSI-KBW-085-216-027-031.hsi.kabelbw.de [85.216.27.31]) by mail.liquid-reality.de (Postfix) with ESMTP id C315368F3A8A for ; Sun, 6 Jul 2008 10:21:22 +0000 (UTC) Message-ID: <48709CAD.7090906@die-schneider.net> Date: Sun, 06 Jul 2008 12:21:33 +0200 From: Christian Schneider User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: camel-user@activemq.apache.org Subject: Re: Can not compile examples from 1.4 snapshot References: <48701333.6000600@die-schneider.net> <4870208E.7050506@gmail.com> In-Reply-To: <4870208E.7050506@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org 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 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 repository. So people could use the binary download wwithout compiling all themselves. In any case there should be a description somewhere that the examples from the binary distro will only run if you first compile from source. For me this was not clear at the start. Greetings Christian ----- [INFO] Compiling 27 source files to C:\java\apache-camel-1.4-SNAPSHOT\src\examples\camel-example-cxf\target\classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [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 com.sun.tools.javac.zip.ZipFileIndex$ZipDirectory.findCENRecord(ZipFileIndex.java:698) at com.sun.tools.javac.zip.ZipFileIndex$ZipDirectory.(ZipFileIndex.java:665) at com.sun.tools.javac.zip.ZipFileIndex.checkIndex(ZipFileIndex.java:260) at com.sun.tools.javac.zip.ZipFileIndex.(ZipFileIndex.java:209) at com.sun.tools.javac.zip.ZipFileIndex.getZipFileIndex(ZipFileIndex.java:115) at com.sun.tools.javac.util.DefaultFileManager.openArchive(DefaultFileManager.java:645) at com.sun.tools.javac.util.DefaultFileManager.listDirectory(DefaultFileManager.java:325) at com.sun.tools.javac.util.DefaultFileManager.list(DefaultFileManager.java:872) at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2077) at 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 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 com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) at 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 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.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420) at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141) at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) Willem Jiang schrieb: > Hi , > > If you are running the example for source code, you'd better run "mvn > install -Dtest=false" from the root directory to install the snapshot > artifacts in your local maven repository first. > > Willem > > > Christian Schneider wrote: >> I have tried to run the examples from the 1.4 snapshot. Like >> 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: >> null:examples:pom:null for project null:examples: >> >> It seems the examples need a parent pom that is not existing in the >> distribution. So probably this can be fixed by adding the parent pom >> to the distribution. Though I think the concept of a parent pom for >> 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´s own and so it >> should not need a parent pom. >> Is this a good idea? >> >> Greeting >> >> Christian >> > >