Skip to content

Commit 9e75759

Browse files
authored
Merge pull request mendix#9077 from atennapel/run/4081-sync-java-dependencies-mx-tool-command
[RUN-4081] Add description of the sync-java-dependencies command
2 parents c890c18 + f598a58 commit 9e75759

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

  • content/en/docs/refguide/general/mx-command-line-tool

content/en/docs/refguide/general/mx-command-line-tool/app.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,3 +308,43 @@ These are the return codes:
308308
| `0` | No issues found. |
309309
| `100` | Validation error on the input. |
310310
| `300` | Exception, something went wrong. |
311+
312+
## mx sync-java-dependencies Command {#java-dependencies}
313+
314+
{{% alert color="info" %}}
315+
This command is available as of [Studio Pro 10.20](/releasenotes/studio-pro/10.20/).
316+
{{% /alert %}}
317+
318+
The `mx sync-java-dependencies` command synchronizes the managed Java dependencies that are configured in the modules of the project.
319+
This results in the corresponding .*jar* files being added to the `vendorlib` directory in the project root.
320+
321+
The input is a single .*mpr* file.
322+
323+
{{% alert color="info" %}}
324+
The .*mpr* file must be the same version as mx.
325+
{{% /alert %}}
326+
327+
### Usage
328+
329+
Use the following command pattern for `mx sync-java-dependencies`:
330+
331+
`mx sync-java-dependencies INPUT`
332+
333+
For `INPUT`, enter an *.mpr* file.
334+
335+
### Examples
336+
337+
These are example commands:
338+
339+
| Example | Result |
340+
| --- | --- |
341+
| `mx sync-java-dependencies C:\Mendix\App1\App1.mpr` | Synchronizes the managed Java dependencies of the project. |
342+
343+
### Return Codes
344+
345+
These are the return codes:
346+
347+
| Return Code | Description |
348+
| --- | --- |
349+
| 0 | The command ran successfully. |
350+
| 1 | The command failed. For example, because the *.mpr* file could not be found. |

0 commit comments

Comments
 (0)