diff --git a/src/utils/mavenUtils.ts b/src/utils/mavenUtils.ts index 7dc6532b..743358a7 100644 --- a/src/utils/mavenUtils.ts +++ b/src/utils/mavenUtils.ts @@ -144,9 +144,9 @@ export async function executeInTerminal(options: { if (pomfile) { const project = MavenProjectManager.get(pomfile); const selectedIds = project?.profiles?.filter(p => p.selected === true)?.map(p => p.id) ?? []; - const unselectedIds = project?.profiles?.filter(p => p.selected === false)?.map(p => `!${p.id}`) ?? []; + const unselectedIds = project?.profiles?.filter(p => p.selected === false)?.map(p => `-${p.id}`) ?? []; if (selectedIds.length + unselectedIds.length > 0) { - profileOptions = "-P " + selectedIds.concat(unselectedIds).join(","); + profileOptions = "-P=" + selectedIds.concat(unselectedIds).join(","); } } const fullCommand: string = [