gluonhq / gluonfx-maven-plugin

Plugin that simplifies creating native images for Java/JavaFX maven projects
BSD 3-Clause "New" or "Revised" License
186 stars 38 forks source link

Unable to execute gluonfx:install because Homebrew is not found #467

Open claudio-rosati opened 1 year ago

claudio-rosati commented 1 year ago

I'm running gluonfx-maven-plugin ver. 1.0.17 (same problem with 1.0.16) from NetBeans 17 with Java 19 on my mac M1.

The error is the following:

[Mon Mar 20 17:08:32 WET 2023][INFO] ==================== INSTALL TASK ====================
[Mon Mar 20 17:08:32 WET 2023][SEVERE] Process check brew failed with result: 1
Check the log files under /Users/crosati/Projects/Demo Projects/GluonApplication/target/gluonfx/x86_64-ios/gvm/log
And please check https://docs.gluonhq.com/ for more information.
[Mon Mar 20 17:08:32 WET 2023][INFO] Logging process [check brew] to file: /Users/crosati/Projects/Demo Projects/GluonApplication/target/gluonfx/log/process-check brew-1679332112494.log
[Mon Mar 20 17:08:32 WET 2023][SEVERE] Homebrew not found
Check the log files under /Users/crosati/Projects/Demo Projects/GluonApplication/target/gluonfx/x86_64-ios/gvm/log
And please check https://docs.gluonhq.com/ for more information.
java.lang.RuntimeException: Open a terminal and run the following command to install Homebrew: 

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    at com.gluonhq.substrate.util.ios.Deploy.checkPrerequisites(Deploy.java:201)
    at com.gluonhq.substrate.util.ios.Deploy.<init>(Deploy.java:60)
    at com.gluonhq.substrate.target.IosTargetConfiguration.install(IosTargetConfiguration.java:288)
    at com.gluonhq.substrate.SubstrateDispatcher.nativeInstall(SubstrateDispatcher.java:479)
    ...

Looking inside the process-check brew-1679332112494.log file I find the following:

Process
=======
check brew

Command Line
============
which brew

Output
======

Result
======
result: 1

But if I run which brew in a terminal window the following is returned: /opt/homebrew/bin/brew, so I don't know how to exit from this situation.