Skip to content

Commit b0bd698

Browse files
committed
add back retries to CI wip
1 parent 4469eac commit b0bd698

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

packages/maven/maven-plugin/project.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
"name": "nx-maven-plugin",
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/maven/maven-plugin",
5-
"projectType": "library"
5+
"projectType": "library",
6+
"targets": {
7+
"mvn-install-with-retries": {
8+
"command": "for i in {1..5}; do npx nx run nx-maven-plugin:mvn-install && break || sleep 10; done"
9+
}
10+
}
611
}

packages/maven/project.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
"nx-release-publish": {
88
"dependsOn": [
99
"^nx-release-publish",
10-
{
11-
"projects": ["nx-maven-plugin"],
12-
"target": "mvn-install",
13-
"params": "ignore"
14-
}
10+
"nx-maven-plugin:mvn-install-with-retries"
1511
],
1612
"executor": "@nx/js:release-publish",
1713
"options": {
@@ -60,15 +56,8 @@
6056
},
6157
"mvn-process-resources": {
6258
"dependsOn": [
63-
{
64-
"target": "mvn-install",
65-
"dependencies": true,
66-
"params": "ignore"
67-
},
68-
{
69-
"target": "mvn-generate-resources",
70-
"params": "ignore"
71-
}
59+
"nx-maven-plugin:mvn-install-with-retries",
60+
"nx-maven-plugin:mvn-generate-resources"
7261
]
7362
}
7463
},

0 commit comments

Comments
 (0)