Opened 12 years ago

#1064 new defect

cannot build Geonetwork using mvn

Reported by: plcking Owned by: geonetwork-devel@…
Priority: major Milestone: v2.10.0 RC0
Component: General Version: v2.8.0RC0
Keywords: Cc:

Description

I cannot build the latest version of GN. Output from the build process follows :

top - 12:17:42 up 356 days, 21:40, 2 users, load average: 0.09, 0.16, 0.07 Tasks: 27 total, 1 running, 26 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3336192k total, 1896804k used, 1439388k free, 0k buffers Swap: 0k total, 0k used, 0k free, 0k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

1 root 15 0 10368 744 624 S 0.0 0.0 0:00.20 init

1386 root 18 0 11124 1456 628 S 0.0 0.0 0:25.31 syslog-ng 1482 root 15 0 186m 110m 2428 S 0.0 3.4 267:45.51 puppetd

Script started on Wed 19 Sep 2012 12:15:00 PM EDT apache@… > ./bld.sh;exit + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) Java version: 1.6.0_27 Java home: /usr/java/jdk1.6.0_27/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.18-274.el5.028stab093.2" arch: "amd64" Family: "unix" [DEBUG] Building Maven user-level plugin registry from: '/home/apache/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/home/apache/mvn/apache-maven-2.2.1/conf/plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Adding managed dependencies for org.geonetwork-opensource:geonetwork [DEBUG] org.tuckey:urlrewritefilter:jar:3.2.0

.....

[DEBUG] The following artifacts were filtered out for plugin: org.codehaus.mojo:exec-maven-plugin:1.1 because they're already in the core of Maven:

org.apache.maven:maven-project:jar:2.0.4:runtime org.apache.maven:maven-model:jar:2.0.4:runtime org.apache.maven:maven-artifact:jar:2.0.4:runtime org.apache.maven:maven-artifact-manager:jar:2.0.4:runtime org.apache.maven:maven-plugin-api:jar:2.0:runtime org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime

These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().

[DEBUG] Configuring mojo 'org.codehaus.mojo:exec-maven-plugin:1.1:exec' --> [DEBUG] (f) basedir = /home/apache/geonetwork_source/geonetwork/web [DEBUG] (f) classpathScope = compile [DEBUG] (f) commandlineArgs = clean [DEBUG] (f) environmentVariables = {ANT_OPTS=-client} [DEBUG] (f) executable = ant [DEBUG] (f) project = MavenProject: org.geonetwork-opensource:geonetwork-main:2.9.0-SNAPSHOT @ /home/apache/geonetwork_source/geonetwork/web/pom.xml [DEBUG] (f) skip = false [DEBUG] (f) workingDirectory = /home/apache/geonetwork_source/geonetwork/web/../schematrons [DEBUG] -- end configuration -- [INFO] [exec:exec {execution: ant-schematrons-clean}] [DEBUG] Args: [DEBUG] <clean> [DEBUG] parsed from <clean> [DEBUG] executable ant not found in place, assuming it is in the PATH. [INFO] Error occurred during initialization of VM [INFO] Could not reserve enough space for object heap [INFO] Could not create the Java virtual machine. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Result of /bin/sh -c cd /home/apache/geonetwork_source/geonetwork/web/../schematrons && ant clean execution is: '1'. [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Result of /bin/sh -c cd /home/apache/geonetwork_source/geonetwork/web/../schematrons && ant clean execution is: '1'.

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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.classworlds.Laun

cher.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: Result of /bin/sh -c cd /home/apache/geonetwork_source/geonetwork/web/../schematrons && ant clean execution is: '1'.

at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:260) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more

[INFO] ------------------------------------------------------------------------ [INFO] Total time: 48 seconds [INFO] Finished at: Wed Sep 19 12:15:54 EDT 2012 [INFO] Final Memory: 80M/285M [INFO] ------------------------------------------------------------------------

apache@… > apache@… > apache@… > apache@… > env | grep MAVEN_OPTS MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m -XX:MaxHeapSize=512m apache@… > apache@… > apache@… > env | grep JAVA JAVA_HOME=/usr/java/jdk1.6.0_27 apache@… >

Change History (0)

Note: See TracTickets for help on using tickets.