@nx/maven 22.6.0-beta.10 → 22.6.0-beta.12

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.
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"maven-batch.impl.d.ts","sourceRoot":"","sources":["../../../src/executors/maven/maven-batch.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAiB,MAAM,YAAY,CAAC;AAKvE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAyE/C;;;GAGG;AACH,wBAA+B,kBAAkB,CAC/C,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC3C,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAAC,CAkHtD"}
1
+ {"version":3,"file":"maven-batch.impl.d.ts","sourceRoot":"","sources":["../../../src/executors/maven/maven-batch.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAiB,MAAM,YAAY,CAAC;AAKvE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAyE/C;;;GAGG;AACH,wBAA+B,kBAAkB,CAC/C,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC3C,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,CAAC,CAuHtD"}
@@ -158,7 +158,13 @@ async function* mavenBatchExecutor(taskGraph, inputs, overrides, context) {
158
158
  console.error(output);
159
159
  }
160
160
  }
161
- resolve();
161
+ // Reject promise if batch runner exited with non-zero code
162
+ if (code !== 0) {
163
+ reject(new Error(`Maven batch runner exited with code ${code}`));
164
+ }
165
+ else {
166
+ resolve();
167
+ }
162
168
  });
163
169
  child.on('error', reject);
164
170
  });
@@ -0,0 +1,7 @@
1
+ import { Tree } from '@nx/devkit';
2
+ /**
3
+ * Migration for @nx/maven v0.0.15
4
+ * Updates the Maven plugin version to 0.0.15 in pom.xml files
5
+ */
6
+ export default function update(tree: Tree): Promise<void>;
7
+ //# sourceMappingURL=update-pom-xml-version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-pom-xml-version.d.ts","sourceRoot":"","sources":["../../../src/migrations/0-0-15/update-pom-xml-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;;;GAGG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,iBAG9C"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = update;
4
+ const pom_xml_updater_1 = require("../../utils/pom-xml-updater");
5
+ /**
6
+ * Migration for @nx/maven v0.0.15
7
+ * Updates the Maven plugin version to 0.0.15 in pom.xml files
8
+ */
9
+ async function update(tree) {
10
+ // Update user pom.xml files
11
+ (0, pom_xml_updater_1.updateNxMavenPluginVersion)(tree, '0.0.15');
12
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../src/plugins/dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAU,MAAM,YAAY,CAAC;AAIxD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAmChC,CAAC"}
1
+ {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../src/plugins/dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAU,MAAM,YAAY,CAAC;AAIxD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAwChC,CAAC"}
@@ -20,8 +20,13 @@ const createDependencies = async (options, context) => {
20
20
  // Extract and transform dependencies from the mavenData
21
21
  const transformedDependencies = mavenData.createDependenciesResults.map((dep) => ({
22
22
  ...dep,
23
- source: rootToProjectMap.get(dep.source),
24
- target: rootToProjectMap.get(dep.target),
23
+ source: dep.source.startsWith('maven:')
24
+ ? dep.source
25
+ : rootToProjectMap.get(dep.source),
26
+ // External deps use maven: prefix — pass through as-is
27
+ target: dep.target.startsWith('maven:')
28
+ ? dep.target
29
+ : rootToProjectMap.get(dep.target),
25
30
  }));
26
31
  return transformedDependencies;
27
32
  };
@@ -1,3 +1,3 @@
1
1
  export declare const nxVersion: any;
2
- export declare const mavenPluginVersion = "0.0.14";
2
+ export declare const mavenPluginVersion = "0.0.15";
3
3
  //# sourceMappingURL=versions.d.ts.map
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mavenPluginVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
- exports.mavenPluginVersion = '0.0.14';
5
+ exports.mavenPluginVersion = '0.0.15';
package/migrations.json CHANGED
@@ -42,6 +42,12 @@
42
42
  "version": "22.6.0-beta.1",
43
43
  "description": "Update Maven plugin version from 0.0.13 to 0.0.14 in pom.xml files",
44
44
  "factory": "./dist/migrations/0-0-14/update-pom-xml-version"
45
+ },
46
+ "update-0-0-15": {
47
+ "cli": "nx",
48
+ "version": "22.6.0-beta.12",
49
+ "description": "Update Maven plugin version from 0.0.14 to 0.0.15 in pom.xml files",
50
+ "factory": "./dist/migrations/0-0-15/update-pom-xml-version"
45
51
  }
46
52
  }
47
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/maven",
3
- "version": "22.6.0-beta.10",
3
+ "version": "22.6.0-beta.12",
4
4
  "private": false,
5
5
  "description": "Nx plugin for Maven integration",
6
6
  "repository": {
@@ -46,7 +46,7 @@
46
46
  "author": "Victor Savkin",
47
47
  "license": "MIT",
48
48
  "dependencies": {
49
- "@nx/devkit": "22.6.0-beta.10",
49
+ "@nx/devkit": "22.6.0-beta.12",
50
50
  "@xmldom/xmldom": "^0.8.10",
51
51
  "tslib": "^2.3.0"
52
52
  },
@@ -56,7 +56,7 @@
56
56
  "@types/xmldom": "^0.1.34",
57
57
  "jest": "^30.0.2",
58
58
  "memfs": "^4.9.2",
59
- "nx": "22.6.0-beta.10",
59
+ "nx": "22.6.0-beta.12",
60
60
  "ts-jest": "^29.4.0",
61
61
  "typescript": "~5.9.2"
62
62
  },