Skip to content

Commit cb8e36f

Browse files
committed
FISH-9955 updated some properties in maven.ts. Fixing script error first
1 parent a40022c commit cb8e36f

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,25 @@ export class Maven implements Build {
279279
}
280280
const cmdArgs: string[] = [
281281
"archetype:generate",
282-
`-DarchetypeArtifactId=payara-micro-maven-archetype`,
283-
`-DarchetypeGroupId=fish.payara.maven.archetypes`,
284-
`-DarchetypeVersion=` + (project.payaraMicroVersion.split('.')[0] === '5' ? '1.0.5' : '2.0'),
282+
`-DarchetypeArtifactId=payara-starter-archetype`,
283+
`-DarchetypeGroupId=fish.payara.starter`,
284+
`-DarchetypeVersion=1.0-beta9`,
285285
`-DgroupId=${project.groupId}`,
286286
`-DartifactId=${project.artifactId}`,
287287
`-Dversion=${project.version}`,
288288
`-Dpackage=${project.package}`,
289289
`-DpayaraMicroVersion=${project.payaraMicroVersion}`,
290290
'-DaddPayaraApi=true',
291-
'-DinteractiveMode=false'
291+
'-DinteractiveMode=false',
292+
'-DjakartaEEVersion='+ (project.payaraMicroVersion.split('.')[0] === '5' ? '8' : '10')
292293
];
293-
let process: ChildProcess = cp.spawn(mavenExe, cmdArgs, { cwd: project.targetFolder?.fsPath });
294+
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 });
294301

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

0 commit comments

Comments
 (0)