Skip to content

IntelliJ maven run fails if launched from menu #53

@mipastgt

Description

@mipastgt

I created a sample Gluon-SingleViewProject with the IntelliJ IDE plugin. When I tried to run this via double-click on Gluon-SingleViewProject->Plugins->gluonfx->gluonfx:run this fails with an error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.200 s
[INFO] Finished at: 2022-02-16T10:31:59+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.12:run (default-cli) on project gluon-singleviewproject: 
Error, javafx:run@default-cli failed: Error while executing process. Cannot run program "/Users/mpaus/Library/Application 
Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/213.6777.52/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/bin/mvn" (in 
directory "/Users/mpaus/temp/Gluon-SingleViewProject"): error=13, Permission denied -> [Help 1]

This is because the picked maven command is not an executable file. If I manually change the permission to 744 it all works but it is probably not a good idea to fiddle with the permissions of files inside the IntelliJ.app.

I know I can also change this in the Maven settings of IntelliJ but why do I have to do that? Shouldn't the default just work? After all I am not sure whether this is a Gluon or IntelliJ error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions