Skip to content

maven property is not forwarded into forked execution #84

@SchlauFuchs

Description

@SchlauFuchs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions