Search code examples
javamavenjetbrains-iderun-configurationfleet

Fleet Run Configuration Maven Build


I'm new on Fleet, I'm trying to import maven project, I created a run.json with this configuration:

{
    "configurations": [
        {
            "type": "maven",
            "name": "Maven Clean Install",
            "workingDir": "./",
            "tasks": ["clean"]
        },
        
    ]
}

but when I run it got this error:

"C:\Program" non è riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.

run.json & error:

enter image description here

settings.json

enter image description here

Fleet Maven Settings

enter image description here

I would make a maven run configuration clean install, now I'm trying only with clean to semplify.


Solution

  • You may need to configure the path to your Maven executable to use quotation marks for any folder where a space exists, like so:

    Before:

    C:\Program Files\maven...

    After:

    C:\"Program Files"\maven...