You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Clodan <ma...@t-online.de> on 2012/10/09 15:14:31 UTC

Maven in Vagrantup?

Hello guys,

well i installed successfully maven on my system. then I created a virtual
machine with Vagrantup. In this virtual machine I want to install maven as
well, but it isn't working. It is strange because on my system and virtual
machine I made the same things.
I entered the following commands as root (sudo su):
svn co http://svn.apache.org/repos/asf/mahout/trunk
mvn install
I applied the second command in the directory trunk. In my virtual machine I
get the following message:





-----------------------------------------------------------------------
Results :

Tests run: 307, Failures: 0, Errors: 0, Skipped: 0

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Mahout ..................................... SUCCESS [1.520s]
[INFO] Mahout Build Tools ................................ SUCCESS [1.768s]
[INFO] Mahout Math ....................................... SUCCESS
[1:13.923s]
[INFO] Mahout Core ....................................... FAILURE
[7:44.818s]
[INFO] Mahout Integration ................................ SKIPPED
[INFO] Mahout Examples ................................... SKIPPED
[INFO] Mahout Release Package ............................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9:03.103s
[INFO] Finished at: Tue Oct 09 13:12:09 UTC 2012
[INFO] Final Memory: 20M/78M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
project mahout-core: Error occurred in starting fork, check output in log ->
[Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :mahout-core
-----------------------------------------------------------------------





Anybody knows why this happening? Why does maven work on my system but not
in my virtual machine? :(


Greetings, Clodan




--
View this message in context: http://maven.40175.n5.nabble.com/Maven-in-Vagrantup-tp5725324.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven in Vagrantup?

Posted by Barrie Treloar <ba...@gmail.com>.
On Wed, Oct 10, 2012 at 5:21 PM, Clodan <ma...@t-online.de> wrote:
[del]
> Do you or someone else maybe know what I can do? Even if it isn't the fault
> of maven maybe someone can tell me what to do? Maybe some know where I can
> find the log? Since 2 days I try to solve the problem but I can't solve
> it... :(

If this works fine on your local machine, but fails in the virtual
machine then perhaps it is because you not given sufficient memory to
the virtual machine (which is something the maven team can not help
you with)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven in Vagrantup?

Posted by Wayne Fay <wa...@gmail.com>.
>  java.io.IOException: error=12, Cannot allocate memory(..)
>
> testDistributedLanczosSolverEVJCLI(org.apache.mahout.math.hadoop.decomposer.TestDistributedLanczosSolverCLI):
> Error while running command to get file permissions : java.io.IOException:
> Cannot run program "/bin/ls": java.io.IOException: error=12, Cannot allocate
> memory(..)

That right there (cannot allocate memory) is your problem. Fix it by
allocating more memory to the machine. Or just turn off/disable/delete
this test so it does not run.

PS- Why are you trying to build Mahout in the first place? I would
assume that most people just use the binaries.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven in Vagrantup?

Posted by Clodan <ma...@t-online.de>.
Hello,

well If make "mvn install -X" then I get the following:






 java.io.IOException: error=12, Cannot allocate memory(..)
 
testDistributedLanczosSolverEVJCLI(org.apache.mahout.math.hadoop.decomposer.TestDistributedLanczosSolverCLI):
Error while running command to get file permissions : java.io.IOException:
Cannot run program "/bin/ls": java.io.IOException: error=12, Cannot allocate
memory(..)

Tests run: 388, Failures: 0, Errors: 10, Skipped: 0

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Mahout ..................................... SUCCESS [1.805s]
[INFO] Mahout Build Tools ................................ SUCCESS [1.908s]
[INFO] Mahout Math ....................................... SUCCESS
[1:00.404s]
[INFO] Mahout Core ....................................... FAILURE
[18:18.763s]
[INFO] Mahout Integration ................................ SKIPPED
[INFO] Mahout Examples ................................... SKIPPED
[INFO] Mahout Release Package ............................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 19:24.400s
[INFO] Finished at: Wed Oct 10 06:43:10 UTC 2012
[INFO] Final Memory: 17M/54M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
project mahout-core: Error occurred in starting fork, check output in log ->
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test)
on project mahout-core: Error occurred in starting fork, check output in log
	at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
	at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error occurred in
starting fork, check output in log
	at
org.apache.maven.plugin.surefire.SurefirePlugin.assertNoException(SurefirePlugin.java:656)
	at
org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:645)
	at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:137)
	at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:98)
	at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException:
Error occurred in starting fork, check output in log
	at
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:281)
	at
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:113)
	at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:199)
	at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176)
	at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:135)
	... 22 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :mahout-core



Do you or someone else maybe know what I can do? Even if it isn't the fault
of maven maybe someone can tell me what to do? Maybe some know where I can
find the log? Since 2 days I try to solve the problem but I can't solve
it... :(


Greetings, Clodan




--
View this message in context: http://maven.40175.n5.nabble.com/Maven-in-Vagrant-tp5725324p5725413.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven in Vagrantup?

Posted by Wayne Fay <wa...@gmail.com>.
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
> project mahout-core: Error occurred in starting fork, check output in log ->
> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.

Follow the directions you were given. Run again with -X. There is some
failure during the test phase relating to forking which is preventing
mahout from building. This does not necessarily mean that Maven has a
problem or has been installed incorrectly but it may be some odd
interaction between Vagrant and the mahout tests which are failing.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org