Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Estimated release date of 0.21.0?

Hello Jan,

Thank you for your reply. Unfortunately, it seems adding environment variables like mentioned in the workaround can easily lead to portability problems. For example:

<environmentVariables>
  <DISPLAY>${env.DISPLAY}</DISPLAY>
</environmentVariables>

If I run this on Windows, I get a NPE (see below). Most likely because ${env.DISPLAY} is not defined. To work around this problem, I could define profiles but I've also seen inconsistencies between the environment variables that need to be "passed" when using different Linux distributions so as I add more of them, the NPE is more likely to manifest itself. It sounds like it might just be easier to go back to 0.19.0 for now and upgrade to 0.21.0 when it's officially released.

Thank you,
Marc-Andre

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.20.0:test (default-test) on project org.eclipse.linuxtools.tmf.ui.swtbot.test
s: Error while executing platform: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.20.0:test (default-test) on project org.eclipse.linuxtools.tmf.ui.swtbot.tests: Error while executing platform
        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:606)
        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 while executing platform
        at org.eclipse.tycho.surefire.TestMojo.runTest(TestMojo.java:945)
        at org.eclipse.tycho.surefire.TestMojo.execute(TestMojo.java:668)
        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: java.lang.NullPointerException
        at org.apache.commons.exec.environment.EnvironmentUtils.toStrings(EnvironmentUtils.java:66)
        at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:56)
        at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:277)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:334)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:164)
        at org.eclipse.sisu.equinox.launching.internal.DefaultEquinoxLauncher.execute(DefaultEquinoxLauncher.java:71)
        at org.eclipse.tycho.surefire.TestMojo.runTest(TestMojo.java:943)
        ... 22 more

no ETA for 0.21.0 yet. Probably shortly after Luna I guess since we want an officially released and stable Java-8 capable JDT compiler.

Regarding bug 431793, a workaround is mentioned in the bug.
Can you live with a workaround until 0.21.0 is released?

Jan

Back to the top