Ardesco / driver-binary-downloader-maven-plugin

A Maven plugin that will download the WebDriver stand alone server executables for use in your mavenised Selenium project.
Apache License 2.0
92 stars 52 forks source link

Error: Unable to find any expected files for marionette #36

Closed jackson-chris closed 8 years ago

jackson-chris commented 8 years ago

Seeing the following error:

[ERROR] Failed to execute goal com.lazerycode.selenium:driver-binary-downloader-maven-plugin:1.0.9:selenium (default) on project foo-selenium: Unable to find any expected files for marionette -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.lazerycode.selenium:driver-binary-downloader-maven-plugin:1.0.9:selenium (default) on project foo-selenium: Unable to find any expected files for marionette
    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:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    at java.lang.reflect.Method.invoke(Method.java:620)
    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: com.lazerycode.selenium.exceptions.ExpectedFileNotFoundException: Unable to find any expected files for marionette
    at com.lazerycode.selenium.extract.FileExtractor.unzipFile(FileExtractor.java:96)
    at com.lazerycode.selenium.extract.FileExtractor.extractFileFromArchive(FileExtractor.java:61)
    at com.lazerycode.selenium.download.DownloadHandler.downloadAndExtractExecutableFiles(DownloadHandler.java:127)
    at com.lazerycode.selenium.download.DownloadHandler.ensureStandaloneExecutableFilesExist(DownloadHandler.java:94)
    at com.lazerycode.selenium.SeleniumServerMojo.execute(SeleniumServerMojo.java:240)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 20 more

This issue is only experienced on windows and not on osx. For more information see https://github.com/Ardesco/Selenium-Maven-Template/issues/21

jackson-chris commented 8 years ago

I was able to reproduce the issue on my mac by adding the following configuration for the plugin:

<onlyGetDriversForHostOperatingSystem>false</onlyGetDriversForHostOperatingSystem>
<operatingSystems>
  <windows>true</windows>
</operatingSystems>
jackson-chris commented 8 years ago

See pull request #37 for fix.

Ardesco commented 8 years ago

@rultor release, tag is 1.0.10

rultor commented 8 years ago

@rultor release, tag is 1.0.10

@ardesco OK, I will release it now. Please check the progress here

rultor commented 8 years ago

@rultor release, tag is 1.0.10

@ardesco Done! FYI, the full log is here (took me 2min)