如何在 Visual Studio Code 中设置 Maven 配置文件? [英] How to set the Maven profiles in Visual Studio Code?

查看:110
本文介绍了如何在 Visual Studio Code 中设置 Maven 配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到在 Visual Studio Code 中设置当前 Maven 配置文件以使用特定配置文件编译我的项目的方法,有人知道怎么做吗?

I couldn't find the way to set the current Maven profiles in Visual Studio Code in order to compile my project using specific profiles, does someone know how to do that?

推荐答案

目前您可以将-PprofileName"添加到设置中的maven.executable.options"条目,例如在工作区设置中.然后在构造命令时附加字符串.

Currently you can add "-PprofileName" to entry "maven.executable.options" in settings, e.g. in workspace settings. Then it appends the string when constructing commands.

例如:maven.executable.options": "-Pdev"

e.g: maven.executable.options": "-Pdev"

github vscode maven 插件

这篇关于如何在 Visual Studio Code 中设置 Maven 配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆