Skip to content

W-21370107 Updating Export Mule Project info#602

Open
Cristian-Venticinque wants to merge 1 commit intolatestfrom
W-21370107-export-mule-project
Open

W-21370107 Updating Export Mule Project info#602
Cristian-Venticinque wants to merge 1 commit intolatestfrom
W-21370107-export-mule-project

Conversation

@Cristian-Venticinque
Copy link
Contributor

No description provided.

@Cristian-Venticinque Cristian-Venticinque self-assigned this Mar 3, 2026
@Cristian-Venticinque Cristian-Venticinque requested a review from a team as a code owner March 3, 2026 13:34
Comment on lines 33 to 34
The contents are lightweight because they don't include dependencies.
The IDE generates the dependencies configured in the `pom.xml` for the project.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This statement is not necessarily true because they can create shareable jar with or without dependancies. As long as the sources are attached, the project can be imported into ACB

Comment on lines +84 to +91
The terminal window in the IDE also provides the path to the JAR, in the `/target` directory under your project folder. In the desktop IDE, you can find the JAR file in the Explorer, under Java Projects:

image::int-export-deployable.png["Deployable JAR file in the Java Projects folder"]

File name patterns:

* Shareable JAR: `_application_name_-_version_-SNAPSHOT-mule-application-light-package.jar`
* Deployable JAR: `_application_name_-_version_-SNAPSHOT-mule-application.jar`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the user can now set the file name and location in the export form, this information is outdated

== Shareable JAR

When you export a Mule project, the shareable JAR file includes these files:
A shareable JAR file is lightweight, packaging only the source code of the application. The source code includes configuration files but not libraries or other dependencies required for your application to run and deploy successfully.
Copy link
Contributor

@mlinsf mlinsf Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 3 export options:

  1. Deployable Jar: Takes the compiled code and package it in its distributable JAR with all its dependencies
  2. Deployable Jar + Attach Project Sources: Package into distributable JAR with source files and metadata needed to reimport the deployable file as an open Mule project.
  3. Sharable Jar: Takes the compiled code and package its source code only.

options 2 and 3 are shareable jars because they include project sources

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Option two is explained inside the conceptual section of the deployable Jar (line 30):

"A deployable JAR file contains the compiled code and all dependencies. For a deployable JAR, you can select Include project sources while exporting the project so the JAR can be opened in Anypoint Code Builder or Studio and also used for deployment. When this option is selected, the JAR also includes the configuration XML and other files in the src folder (including resource files), mule-artifact.json, and pom.xml, the same project sources as in a shareable JAR. "

The == Shareable JAR and == Deployable JAR sections are not reflecting the UI options, rather they contain conceptual info about the differences between the two types of packages. Do you think this needs some adjustment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants