Hi List I'm trying to build the cloudstack for hyper-v as described here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Creating+Hyperv+Agent+Installer mvn clean succeeds but the mv install part fails: --- $ mvn -X clean > mvn_clean_debug.log [INFO] Apache CloudStack Client UI ........................ SUCCESS [ 0.009 s] [INFO] Apache CloudStack Console Proxy - RDP Client ....... SUCCESS [ 0.008 s] [INFO] Apache CloudStack Console Proxy .................... SUCCESS [ 0.008 s] [INFO] Apache CloudStack Console Proxy - Server ........... SUCCESS [ 0.007 s] [INFO] Apache CloudStack Framework - QuickCloud ........... SUCCESS [ 0.007 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.781 s [INFO] Finished at: 2015-06-26T23:28:20+03:00 [INFO] Final Memory: 50M/1238M [INFO] ------------------------------------------------------------------------ --- However, "mvn -X -d install -P developer,systemvm" fails with something like this" --- [[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 50.625 s [INFO] Finished at: 2015-06-26T23:54:07+03:00 [INFO] Final Memory: 60M/981M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project cloud-utils: There are test failures. [ERROR] [ERROR] Please refer to C:\cloudstack\utils\target\surefire-reports for the individual test results. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project cloud-utils: There are test failures. Please refer to C:\cloudstack\utils\target\surefire-reports for the individual test results. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) 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:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures. Please refer to C:\cloudstack\utils\target\surefire-reports for the individual test results. at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:82) at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:254) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:854) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:722) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 20 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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :cloud-utils --- How would I analyse this in further depth to understand why it's failing, and get it to build successfully? Any idea what the issue might be? Let me know and I can send through the full debug output of mvn -X clean and "mvn -X -d install -P developer,systemvm". Alternatively: Is there possibly a less error prone way of integrating Hyper-V with CloudStack, or is it possible to use a pre-built executable that's been verified to work on Windows 2012 R2 (for some patch-level at least), that can be downloaded and run as a service ? Many thanks in advance! Traiano