wilx commented on PR #181:
URL: https://github.com/apache/maven-invoker/pull/181#issuecomment-5790174945

   > The default client policy for Windows PowerShell 5.1 and pwsh 7 is 
Restricted, and the process-scoped -ExecutionPolicy Bypass a developer passes 
to the outer mvn.ps1 is not inherited, so every nested build then fails with 
"running scripts is disabled on this system".
   
   It is not true it is not inherited. The policy is inherited via [environment 
variables](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.6#set-a-different-policy-for-one-session):
 
   
   > You can use the ExecutionPolicy parameter of pwsh.exe to set an execution 
policy for a new PowerShell session. The policy affects only the current 
session and child sessions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to