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 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
- await new Promise((resolve, reject) => external_child_process_default().exec(`mvn clean install -Dmaven.repo.local="${(0,external_path_.join)(keycloakifyBuildCacheDirPath, ".m2")}"`, { cwd: keycloakifyBuildCacheDirPath }, error => {
1557
- if (error !== null) {
1558
- console.error(`Build jar failed: ${JSON.stringify({
1559
- jarFileBasename,
1560
- keycloakAccountV1Version,
1561
- keycloakThemeAdditionalInfoExtensionVersion
1562
- }, null, 2)}`);
1563
- reject(error);
1564
- return;
1565
- }
1566
- resolve();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.8.15",
3
+ "version": "11.8.16",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -220,31 +220,39 @@ export async function buildJar(params: {
220
220
  );
221
221
  }
222
222
 
223
- await new Promise<void>((resolve, reject) =>
224
- child_process.exec(
225
- `mvn clean install -Dmaven.repo.local="${pathJoin(keycloakifyBuildCacheDirPath, ".m2")}"`,
226
- { cwd: keycloakifyBuildCacheDirPath },
227
- error => {
228
- if (error !== null) {
229
- console.error(
230
- `Build jar failed: ${JSON.stringify(
231
- {
232
- jarFileBasename,
233
- keycloakAccountV1Version,
234
- keycloakThemeAdditionalInfoExtensionVersion
235
- },
236
- null,
237
- 2
238
- )}`
239
- );
240
-
241
- reject(error);
242
- return;
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
- resolve();
245
- }
246
- )
247
- );
253
+ )
254
+ );
255
+ }
248
256
 
249
257
  await fs.rename(
250
258
  pathJoin(