bmaggi / library-training

:mortar_board: :books: The Library Training Material (Incoming Eclipse Papyrus Photon Year 2018-2019)
Eclipse Public License 1.0
12 stars 5 forks source link

Test runtime fails to launch on mac os x #27

Closed toeklk closed 6 years ago

toeklk commented 6 years ago

I wanted to check if the mac os x RCP (from issue #1 ) was working fine, yet so far I didn't succeed in building the product on mac os x

`[INFO] Reactor Summary: [INFO] [INFO] org.eclipse.papyrus.training.library.tests ......... FAILURE [ 7.429 s] [INFO] Training Library Releng ............................ SKIPPED [INFO] org.eclipse.papyrus.training.library.feature ....... SKIPPED [INFO] org.eclipse.papyrus.training.library.feature.p2 .... SKIPPED [INFO] org.eclipse.papyrus.training.library.rcp ........... SKIPPED [INFO] org.eclipse.papyrus.training.library.rcp.feature ... SKIPPED [INFO] org.eclipse.papyrus.training.library.product ....... SKIPPED [INFO] org.eclipse.papyrus.training.library.targetplatform SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 42.178 s [INFO] Finished at: 2017-12-13T17:03:20+01:00 [INFO] Final Memory: 84M/474M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.eclipse.papyrus.training.library.tests: An unexpected error occured while launching the test runtime (return code 13). See log for details. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.eclipse.papyrus.training.library.tests: An unexpected error occured while launching the test runtime (return code 13). See log for details. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) 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:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:497) 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: An unexpected error occured while launching the test runtime (return code 13). See log for details. at org.eclipse.tycho.surefire.TestMojo.runTest (TestMojo.java:1007) at org.eclipse.tycho.surefire.TestMojo.execute (TestMojo.java:667) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) 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:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:497) 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) [ERROR] [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/MojoFailureException

(bizarre) Log file attached. fail.log `

bmaggi commented 6 years ago

I just added macosx environment, so in theory it should work. I don't have a mac to test it right now.

bmaggi commented 6 years ago

I close the issue, please reopen it if it's still non working on mac.

toeklk commented 6 years ago

Still occurs. As usual, the maven output is utterly useless in debugging. The stacktrace itself (see attachment in Comment above) point to something such as https://www.eclipse.org/forums/index.php/t/488516/ Yet, the solution which is there is not using a target platform definition, and from looking at the definition, I don't understand what is wrong...

toeklk commented 6 years ago

Hmm, somehow it seems I cannot reopen the issue myself?

bmaggi commented 6 years ago

I just pushed a fix on master (at least it's working on my personal mac) Test are passing and update site/product build. (You should be able to use the update site but I don't expect the product to be running directly... as far as I remember there is a bunch of configuration to add, to have something running despite the security)

toeklk commented 6 years ago

I can confirm the build and tests are working fine on my side now too!