Skip to content

Commit f12e5d5

Browse files
committed
FISH-9958 included the platform for the payara archetype.
1 parent cb8e36f commit f12e5d5

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/main/fish/payara/project/Maven.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
/*
4-
* Copyright (c) 2020-2022 Payara Foundation and/or its affiliates and others.
4+
* Copyright (c) 2020-2024 Payara Foundation and/or its affiliates and others.
55
* All rights reserved.
66
*
77
* This program and the accompanying materials are made available under the
@@ -289,15 +289,11 @@ export class Maven implements Build {
289289
`-DpayaraMicroVersion=${project.payaraMicroVersion}`,
290290
'-DaddPayaraApi=true',
291291
'-DinteractiveMode=false',
292-
'-DjakartaEEVersion='+ (project.payaraMicroVersion.split('.')[0] === '5' ? '8' : '10')
292+
'-DjakartaEEVersion='+ (project.payaraMicroVersion.split('.')[0] === '5' ? '8' : '10'),
293+
'-Dplatform=micro'
293294
];
294295

295-
/**
296-
* String PROP_PLATFORM = "platform";
297-
* String PROP_PLATFORM_MICRO_VALUE = "micro";
298-
* properties.put(PROP_PLATFORM, PROP_PLATFORM_MICRO_VALUE)
299-
*/
300-
let process: ChildProcess = cp.spawn(mavenExe, cmdArgs, { cwd: project.targetFolder?.fsPath, shell: true });
296+
let process: ChildProcess = cp.spawn(mavenExe, cmdArgs, { cwd: project.targetFolder?.fsPath });
301297

302298
if (process.pid) {
303299
let outputChannel = ProjectOutputWindowProvider.getInstance().get(`${project.artifactId}`);

0 commit comments

Comments
 (0)