Search code examples
jarmulearchivemulesoftanypoint-studio

Unable to deploy MuleSoft project file, file does not exist


I am unable to export Mule Project using: Right click on Project -> Export -> Mule -> Anypoint Studio Project to Mule Deployable Archive (includes Studio metadata).

enter image description here

I have tried to create empty jar file and assign export to it, still the same error, also tried to change directories to cloud disk as well as local locations, always the same issue. Cannot get anyone to support with it and I could not find any similar issue in the Internet.

Mule version: 4.2.1
Anypoint Studio Version: 7.4.2

The thing is that I know that this file does not exist, I know that because I want to create this file. Manual creation and assignment did not work so I have no clue why is Mule throwing such a strange error.


Solution

  • There are multiple possible causes for this issue. First you should ensure that the application is building correctly before trying to export it. Most of the time a Maven build problem prevents the export to work. That is because Studio 7.x uses Maven to build and package Mule applications. If Maven execution fails it just can't create the output file. That is different than in Studio 6.x in case you were used to that version.

    It is possible that the error log link in the error can give some insight on the details of the issue.

    In the past sometimes an error like this was related to a Studio bug though I believe they were fixed by now. You are using an old version of Anypoint Studio. The current one at this time is Studio 7.11. It is recommended to stay on top of newer versions to receive bug fixes and improvements. Note that specifically Studio 7.4.2 can not auto update to newer versions. You need to do a fresh install of the newer version.