In CXF there are different settings for 32bit and 64bit Systems. Do you have a 64bit OS? Then we parhaps also need that for Camel.
Christian -----Ursprüngliche Nachricht----- Von: Christian Mueller [mailto:christian.muel...@gmail.com] Gesendet: Dienstag, 25. Januar 2011 14:03 An: dev@camel.apache.org Betreff: Building Camel 2.7-SNAPSHOT with Maven 2.2.1 and 3.0.2 fails with java.lang.OutOfMemoryError I would let you know, that I had problems building Camel 2.7-SNAPSHOT with Maven 3.0.2: mvn -Pfastinstall clean install fails without any exception or with the following (every time in camel-soap): [INFO] ------------------------------------------------------------------------ [INFO] Building Camel :: SOAP 2.7-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ camel-soap --- [INFO] Deleting /Users/cmueller/workspaceApache/camel/components/camel-soap/target [INFO] [INFO] --- maven-antrun-plugin:1.2:run (create-prop) @ camel-soap --- [INFO] Executing tasks [echo] Maven version: 2.7-SNAPSHOT [echo] OSGi version: 2.7.0.SNAPSHOT [mkdir] Created dir: /Users/cmueller/workspaceApache/camel/components/camel-soap/target [INFO] Executed tasks [INFO] [INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ camel-soap --- [INFO] [INFO] --- cxf-xjc-plugin:2.3.2:xsdtojava (generate-sources) @ camel-soap --- [INFO] [INFO] --- cxf-codegen-plugin:2.3.2:wsdl2java (generate-sources-wsdl) @ camel-soap --- Jan 25, 2011 12:49:02 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@38a8d854: startup date [Tue Jan 25 12:49:02 CET 2011]; root of context hierarchy Exception in thread "main" java.lang.OutOfMemoryError: PermGen space at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:417) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) With Maven 2.2.1, it fails also but in another module: [INFO] ------------------------------------------------------------------------ [INFO] Building Camel :: Assembly [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting /Users/cmueller/workspaceApache/camel/apache-camel/target [INFO] [antrun:run {execution: create-prop}] [INFO] Executing tasks [echo] Maven version: 2.7-SNAPSHOT [echo] OSGi version: 2.7.0.SNAPSHOT [mkdir] Created dir: /Users/cmueller/workspaceApache/camel/apache-camel/target [INFO] Executed tasks [INFO] [properties:read-project-properties {execution: default}] [INFO] [remote-resources:process {execution: default}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [assembly:single {execution: unix-bin}] [INFO] Reading assembly descriptor: src/main/descriptors/unix-bin.xml [WARNING] Cannot include project artifact: org.apache.camel:apache-camel:pom:2.7-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.camel:apache-camel:pom:2.7-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.camel:apache-camel:pom:2.7-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.camel:apache-camel:pom:2.7-SNAPSHOT; it doesn't have an associated file or directory. [INFO] Building tar : /Users/cmueller/workspaceApache/camel/apache-camel/target/apache-camel-2.7-SNAPSHOT.tar.gz [INFO] [assembly:single {execution: windows-bin}] [INFO] Reading assembly descriptor: src/main/descriptors/windows-bin.xml [WARNING] Cannot include project artifact: org.apache.camel:apache-camel:pom:2.7-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.camel:apache-camel:pom:2.7-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.camel:apache-camel:pom:2.7-SNAPSHOT; it doesn't have an associated file or directory. [WARNING] Cannot include project artifact: org.apache.camel:apache-camel:pom:2.7-SNAPSHOT; it doesn't have an associated file or directory. [INFO] Building zip: /Users/cmueller/workspaceApache/camel/apache-camel/target/apache-camel-2.7-SNAPSHOT.zip [INFO] [assembly:single {execution: unix-src}] [INFO] Reading assembly descriptor: src/main/descriptors/unix-src.xml Exception in thread "Thread-1446" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils$AttributeParser.consumeLine(PlexusIoResourceAttributeUtils.java:415) at org.codehaus.plexus.util.cli.StreamPumper.consumeLine(StreamPumper.java:197) at org.codehaus.plexus.util.cli.StreamPumper.run(StreamPumper.java:137) I could fix these issues with the following maven opts (bigger value for both options): export MAVEN_OPTS="-Xmx736m -XX:MaxPermSize=256m" I think we should update the building page: http://camel.apache.org/building.html Hope this post safes time for someone of you which upgrades to Maven 3 and run into the same issue... Christian -- View this message in context: http://camel.465427.n5.nabble.com/Building-Camel-2-7-SNAPSHOT-with-Maven-2-2-1-and-3-0-2-fails-with-java-lang-OutOfMemoryError-tp3356207p3356207.html Sent from the Camel Development mailing list archive at Nabble.com.