Fleet Run Configuration Maven Build

97 views Asked by At

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.

1

There are 1 answers

1
Josh Austin On BEST ANSWER

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...