keycloakify 11.8.15 → 11.8.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/712.index.js +19 -12
- package/package.json +1 -1
- package/src/bin/keycloakify/buildJars/buildJar.ts +32 -24
package/bin/712.index.js
CHANGED
@@ -1553,18 +1553,25 @@ async function buildJar(params) {
|
|
1553
1553
|
});
|
1554
1554
|
await promises_.writeFile((0,external_path_.join)(keycloakifyBuildCacheDirPath, "pom.xml"), Buffer.from(pomFileCode, "utf8"));
|
1555
1555
|
}
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1556
|
+
{
|
1557
|
+
const mvnBuildCmd = `mvn clean install -Dmaven.repo.local="${(0,external_path_.join)(keycloakifyBuildCacheDirPath, ".m2")}"`;
|
1558
|
+
await new Promise((resolve, reject) => external_child_process_default().exec(mvnBuildCmd, { cwd: keycloakifyBuildCacheDirPath }, error => {
|
1559
|
+
if (error !== null) {
|
1560
|
+
console.error([
|
1561
|
+
`Build jar failed: ${JSON.stringify({
|
1562
|
+
jarFileBasename,
|
1563
|
+
keycloakAccountV1Version,
|
1564
|
+
keycloakThemeAdditionalInfoExtensionVersion
|
1565
|
+
}, null, 2)}`,
|
1566
|
+
"Try running the following command to debug the issue (you are probably under a restricted network and you need to configure your proxy):",
|
1567
|
+
`cd ${keycloakifyBuildCacheDirPath} && ${mvnBuildCmd}`
|
1568
|
+
].join("\n"));
|
1569
|
+
reject(error);
|
1570
|
+
return;
|
1571
|
+
}
|
1572
|
+
resolve();
|
1573
|
+
}));
|
1574
|
+
}
|
1568
1575
|
await promises_.rename((0,external_path_.join)(keycloakifyBuildCacheDirPath, "target", `${buildContext.artifactId}-${buildContext.themeVersion}.jar`), (0,external_path_.join)(buildContext.keycloakifyBuildDirPath, jarFileBasename));
|
1569
1576
|
}
|
1570
1577
|
//# sourceMappingURL=buildJar.js.map
|
package/package.json
CHANGED
@@ -220,31 +220,39 @@ export async function buildJar(params: {
|
|
220
220
|
);
|
221
221
|
}
|
222
222
|
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
223
|
+
{
|
224
|
+
const mvnBuildCmd = `mvn clean install -Dmaven.repo.local="${pathJoin(keycloakifyBuildCacheDirPath, ".m2")}"`;
|
225
|
+
|
226
|
+
await new Promise<void>((resolve, reject) =>
|
227
|
+
child_process.exec(
|
228
|
+
mvnBuildCmd,
|
229
|
+
{ cwd: keycloakifyBuildCacheDirPath },
|
230
|
+
error => {
|
231
|
+
if (error !== null) {
|
232
|
+
console.error(
|
233
|
+
[
|
234
|
+
`Build jar failed: ${JSON.stringify(
|
235
|
+
{
|
236
|
+
jarFileBasename,
|
237
|
+
keycloakAccountV1Version,
|
238
|
+
keycloakThemeAdditionalInfoExtensionVersion
|
239
|
+
},
|
240
|
+
null,
|
241
|
+
2
|
242
|
+
)}`,
|
243
|
+
"Try running the following command to debug the issue (you are probably under a restricted network and you need to configure your proxy):",
|
244
|
+
`cd ${keycloakifyBuildCacheDirPath} && ${mvnBuildCmd}`
|
245
|
+
].join("\n")
|
246
|
+
);
|
247
|
+
|
248
|
+
reject(error);
|
249
|
+
return;
|
250
|
+
}
|
251
|
+
resolve();
|
243
252
|
}
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
);
|
253
|
+
)
|
254
|
+
);
|
255
|
+
}
|
248
256
|
|
249
257
|
await fs.rename(
|
250
258
|
pathJoin(
|