vscode-maven icon indicating copy to clipboard operation
vscode-maven copied to clipboard

Configure maven profiles

Open myrepo-aw opened this issue 3 years ago • 4 comments

I need to use multiple specific profiles at the same time when running Maven in my project, the profiles are:

  • adobe-public
  • autoInstallPackage
  • coverage

These profiles are configured in the pom.xml file, but i have not found a way to tell VSC to use them.

I tried setting them this way: "maven.executable.options": "autoInstallPackage, adobe-public, coverage" in the settings.json but it does not work

For example, using IntelliJ IDE profiles can be selected, but not in VSC (I could just work in IntelliJ, but I don't like that IDE, that's why I want to use it in VSC).

IntelliJ IDE: image

VSC IDE: (THERE ARE NO PROFILES) image

myrepo-aw avatar Sep 26 '21 21:09 myrepo-aw

see this Introduction to Build Profiles use mvn groupId:artifactId:goal -P profile-1,profile-2,?profile-3 (profile-1,profile-2,profile-3 are ids of profile to use) may help.

mannixsuo avatar Sep 27 '21 06:09 mannixsuo

is there any gui solution in the pipeline?

giosooul avatar May 24 '22 21:05 giosooul

+1

baijunjs avatar Oct 08 '22 03:10 baijunjs

Checkbox in tree item is in proposed state. See https://github.com/microsoft/vscode/issues/116141

Eskibear avatar Oct 11 '22 08:10 Eskibear

+1

hujghc avatar Nov 24 '22 10:11 hujghc