Dmitry Timofeev created SUREFIRE-1648:
-----------------------------------------

             Summary: Failsafe does not pass LD_LIBRARY_PATH to JVM on Mac with 
SIP enabled
                 Key: SUREFIRE-1648
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1648
             Project: Maven Surefire
          Issue Type: Bug
    Affects Versions: 2.22.1
         Environment: OS: macOS Mojave with SIP enabled (default)
JVM: OpenJDK 11.0.2
            Reporter: Dmitry Timofeev


Hi,

We encountered a problem with using maven-failsafe-plugin on Mac with SIP 
(System Integrity Protection) enabled. We’re using failsafe to run our 
integration tests that depend on a native library that also requires 
LD_LIBRARY_PATH to be set. Failsafe plugin does not pass LD_LIBRARY_PATH to the 
process which leads to tests failures. According to the documentation [1] we 
can use environmentVariables parameter like this:
{code:java}
<environmentVariables>
  <LD_LIBRARY_PATH>${myLdLibraryPath}</LD_LIBRARY_PATH>
</environmentVariables>{code}
This configuration works perfectly with Exec Maven Plugin, but it doesn't in 
failsafe.

Is it desired behaviour? Do you have any ideas how to pass necessary 
LD_LIBRARY_PATH to the integration tests?

[1]: 
http://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#environmentVariables



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to