Skip to content

Commit 4a8865e

Browse files
authored
Merge pull request #172 from jGauravGupta/FISH-7084
FISH-7084 VSCode support Maven Archetype 1.x/2.x release binary for respective Payara Micro 5.x/6.x
2 parents 07e73eb + daa8bc4 commit 4a8865e

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

src/main/fish/payara/micro/PayaraMicroProjectGenerator.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,16 @@ const DEFAULT_VERSION: string = '1.0.0-SNAPSHOT';
3232
const DEFAULT_ARTIFACT_ID: string = 'payara-micro-sample';
3333
const DEFAULT_GROUP_ID: string = 'fish.payara.micro.sample';
3434
const PAYARA_MICRO_VERSIONS = [
35-
'5.201',
36-
'5.194', '5.193.1', '5.192', '5.191',
37-
'5.184', '5.183', '5.182', '5.181'
35+
'6.2023.1', '6.2022.2', '6.2022.1',
36+
'5.2022.5', '5.2022.4', '5.2022.3',
37+
'5.2022.2', '5.2022.1', '5.2021.10',
38+
'5.2021.9', '5.2021.8', '5.2021.7',
39+
'5.2021.6', '5.2021.5', '5.2021.4',
40+
'5.2021.3', '5.2021.2', '5.2021.1',
41+
'5.2020.7', '5.2020.6', '5.2020.5',
42+
'5.2020.4', '5.2020.3', '5.2020.2',
43+
'5.201', '5.194', '5.193.1', '5.192',
44+
'5.191', '5.184', '5.183', '5.182', '5.181'
3845
];
3946

4047
export class PayaraMicroProjectGenerator {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export class Maven implements Build {
281281
"archetype:generate",
282282
`-DarchetypeArtifactId=payara-micro-maven-archetype`,
283283
`-DarchetypeGroupId=fish.payara.maven.archetypes`,
284-
`-DarchetypeVersion=1.0.5`,
284+
`-DarchetypeVersion=` + (project.payaraMicroVersion.split('.')[0] === '5' ? '1.0.5' : '2.0'),
285285
`-DgroupId=${project.groupId}`,
286286
`-DartifactId=${project.artifactId}`,
287287
`-Dversion=${project.version}`,

0 commit comments

Comments
 (0)