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

maven property is not forwarded into forked execution #84

Open SchlauFuchs opened 6 years ago

SchlauFuchs commented 6 years ago

Hi,

I have set up my project to extract the latest chrome driver, and I got confirmation [INFO] Setting maven property - ${webdriver.chrome.driver} = C:\Users\my\Documents\eclipse-workspace\app\binaries\windows\googlechrome\64bit\chromedriver.exe Then maven is set to execute a spring-boot application. (spring-boot:run). This then complaints that either the variable webdriver.chrome.driver is not set (probably because running forked), or if I configure the plugin to use the configuration


<configuration>
    <mainClass>com.myorg.Main</mainClass>
    <layout>ZIP</layout>
    <jvmArguments>
      -Dwebdriver.chrome.driver=${webdriver.chrome.driver}
    </jvmArguments>
<configuration>```

the application then complains about 
`IllegalStateException: The driver executable does not exist: C:\Users\my\Documents\eclipse-workspace\app\${webdriver.chrome.driver}` 
Please give further instructions.
Ardesco commented 6 years ago

Can you upload a minimal POM file showing your problem so I can have a look at it?