[Users] ovirt-engine build failing on EL6
Brown, Chris (GE Healthcare)
Christopher.Brown at med.ge.com
Sat Jan 21 00:21:05 UTC 2012
After further digging I came to conclusion that old 2.0.x version of Maven in the Jpackage free/devel repos for EL had to be the source of what was causing the build failure (must be some incompatibility there). I bootstrapped a clean EL6 build env and installed Maven 3.0.3 by hand. This seems to have done the trick and now I get a successful build. I would suggest an update of the wiki pages for building the ovirt-engine that state Maven 3.x does not work and to use Maven 2.x. I volunteer as well to contribute to the wiki the information on what I did to get the engine to build on EL6. What I did on scientific linux should also work on CentOS and other derivitives.
regards,
Chris Brown
________________________________
From: Brown, Chris (GE Healthcare)
Sent: Fri 1/20/2012 2:24 PM
To: 'Haim Ateya'
Subject: RE: [Users] ovirt-engine build failing on EL6
Ran into that issue yesterday with maven while trying to build under FC16, adjusting the VM memory to 6GB solved the issue.
From: Haim Ateya [mailto:hateya at redhat.com]
Sent: Friday, January 20, 2012 2:10 PM
To: Brown, Chris (GE Healthcare)
Subject: Re: [Users] ovirt-engine build failing on EL6
I have experience with build failures where maven fails with out of memory on machines with less then 8g and 2 cores.
Haim
On Jan 20, 2012, at 22:06, "Brown, Chris (GE Healthcare)" <Christopher.Brown at med.ge.com> wrote:
6GB
From: Haim Ateya [mailto:hateya at redhat.com]
Sent: Friday, January 20, 2012 2:06 PM
To: Brown, Chris (GE Healthcare)
Subject: Re: [Users] ovirt-engine build failing on EL6
Hi,
How many Gig of of ram do you have on the build machine?
Haim
On Jan 20, 2012, at 21:22, "Brown, Chris (GE Healthcare)" <Christopher.Brown at med.ge.com> wrote:
[DEBUG] (f) runOnlyAtExecutionRoot = false
[DEBUG] (s) siteDirectory = /temp/ovirt-engine/backend/manager/tools/engine-notifier/engine-notifier-resources/target/site
[DEBUG] (f) skipAssembly = false
[DEBUG] (s) tarLongFileMode = warn
[DEBUG] (s) tempRoot = /temp/ovirt-engine/backend/manager/tools/engine-notifier/engine-notifier-resources/target/archive-tmp
[DEBUG] (s) workDirectory = /temp/ovirt-engine/backend/manager/tools/engine-notifier/engine-notifier-resources/target/assembly/work
[DEBUG] -- end configuration --
[INFO] [assembly:single {execution: make-assembly}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.apache.maven.shared.io.location.ArtifactLocatorStrategy.<init>(Lorg/apache/maven/artifact/factory/ArtifactFactory;Lorg/apache/maven/artifact/resolver/ArtifactResolver;Lorg/apache/maven/artifact/repository/ArtifactRepository;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NoSuchMethodError: org.apache.maven.shared.io.location.ArtifactLocatorStrategy.<init>(Lorg/apache/maven/artifact/factory/ArtifactFactory;Lorg/apache/maven/artifact/resolver/ArtifactResolver;Lorg/apache/maven/artifact/repository/ArtifactRepository;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
at org.apache.maven.plugin.assembly.io.DefaultAssemblyReader.readAssemblies(DefaultAssemblyReader.java:102)
at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:352)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 minutes 10 seconds
[INFO] Finished at: Fri Jan 20 12:01:45 CST 2012
[INFO] Final Memory: 54M/127M
[INFO] ------------------------------------------------------------------------
Any thoughts or ideas what may be going wrong here?
_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
More information about the Users
mailing list