Hello

You probably need to add the "-XX:MaxPermSize=128m" property to the MAVEN_OPTS variable of the script used for launching maven ($MAVEN_HOME/bin/mvn or $MAVEN_HOME/bin/mvn.bat).

Olivier

Dhanasekar T a écrit :
Hi Florent,

Thanks for your reply. Previously we checked out Nuxeo source from this location:

http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/trunk/nuxeo-platform-ear <http://svn.nuxeo.org/nuxeo/org.nuxeo.ecm.platform/trunk/nuxeo-platform-ear>

But since you have mentioned something like this in your reply:

>>All needed files are installed by running:
>>  ant patch
>>  ant copy-lib
>>from the root of a Nuxeo EP svn checkout.

We checked out the Nuxeo source from

http://svn.nuxeo.org/nuxeo/nuxeo-ep/trunk/

Is this correct location?

We checked out the source into "C:\nuxeo-sample\NuxeoEP". After that, we ran "ant patch" command from the root. The build was successful but we got an build error for "log4j". C:\nuxeo-sample\NuxeoEP\trunk>ant patch

Buildfile: build.xml

patch-unix:

patch-windows:
     [echo] Running maven script jboss-patch/pom.xml
     [exec] [INFO] Scanning for projects...
     [exec] WAGON_VERSION: 1.0-beta-2
[exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] Building Nuxeo Platform: JBoss patch
     [exec] [INFO]    task-segment: [clean, package]
[exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] [clean:clean]
[exec] [INFO] Deleting directory C:\nuxeo-sample\NuxeoEP\trunk\jboss-patch\target
     [exec] [INFO] [buildnumber:create {execution: default}]
     [exec] [INFO] Checking for local modifications: skipped.
     [exec] [INFO] Updating project files from SCM: skipped.
     [exec] [INFO] Storing buildNumber: 28945 at timestamp: 1200476088640
     [exec] [INFO] [apt:execute {execution: generate-bindings}]
     [exec] [INFO] [antrun:run {execution: prepare-transform}]
     [exec] [INFO] Executing tasks
     [exec]      [echo] Preparing log4j patching...
[exec] [copy] Copying 1 file to C:\jboss-4.2.0.GA\server\default\conf
     [exec] [INFO] Executed tasks
     [exec] [INFO] [nuxeo:eclipse-version {execution: eclipsize-version}]
     [exec] [INFO] eclipseVersion: 4.0.4.GA-SNAPSHOT
     [exec] [INFO] [xml:transform {execution: patch-jboss-config}]
[exec] [WARNING] No files found for transformation by stylesheet C:\nuxeo-sample\NuxeoEP\trunk\jboss-patch\src\main\xsl\log4j.xsl
     [exec] [INFO] [antrun:run {execution: patch-jboss-config}]
     [exec] [INFO] Executing tasks
     [exec]      [echo] Patching log4j config...
[exec] [INFO] ------------------------------------------------------------------------
     [exec] [ERROR] BUILD ERROR
[exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] Error executing ant tasks
     [exec]
[exec] Embedded error: Warning: Could not find file C:\nuxeo-sample\NuxeoEP\trunk\jboss-patch\target\generated-resources\xml\xslt\log4j.xml to copy. [exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] For more information, run Maven with the -e switch
[exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] Total time: 10 seconds
     [exec] [INFO] Finished at: Wed Jan 16 15:04:54 IST 2008
     [exec] [INFO] Final Memory: 15M/29M
[exec] [INFO] ------------------------------------------------------------------------

patch:

BUILD SUCCESSFUL
Total time: 12 seconds


Since the build was successful, we ran the "ant copy-lib" command which was also successful.

But when we ran "mvn install -X" the build is failing because of "Java Heap Size" error.

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] : [EMAIL PROTECTED]
Compilation error.

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Compilation error.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java :278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        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:585)
at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main (Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Compilation error. at org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:467) at org.apache.myfaces.maven.plugin.AptMojo.execute (AptMojo.java:113) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java :539)
        ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 minutes 2 seconds
[INFO] Finished at: Wed Jan 16 15:19:29 IST 2008
[INFO] Final Memory: 60M/63M
[INFO] ------------------------------------------------------------------------

Any help would be greatly appreciated.

Thanks in advance.

Dhanasekar T.

------------------------------------------------------------------------

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to