Visual Studio Code Maven Run Configuration
I’m trying to figure out how to bind VSC’s F5 / run key to a custom maven command, e.g. maven clean package
I know I can click on the lifecycle phases in the Maven explorer menu, but I want to bind it to F5, and keep the option for the full power of any maven command, not just a provided palette.
- So far I understood that I can define a
.vscode/launch.json, to define what happens onF5. - There seems to be no dedicated maven launcher, so I guess the only way is to define a
bashconfiguration, that then runs my maven command.
Ideally someone could provide me with a sample that runs a maven command. On the long run I’m looking for a detailed technical documentation of the launch.json syntax, e.g. a schema, so I can define whatever I need.
I only found the high level Microsoft tutorial, but no technical details on how to write my own launch.json.
Read more here: Source link
