Search code examples
jenkinsmule-studioanypoint-studiomulesoft

Not able to import mule jar in my local AnyPoint studio which is being built and downloaded from Jenkins


I am able to build and deploy Mulesoft API on a remote MuleSoft-CloudHub through Jenkins.

But when I download the same jar from Jenkins to my local machine and when I try to import the jar to my local AnyPoint studio, it is not happening and throwing the below error.

Any suggestions on this..??

enter image description here


Solution

  • Your project is probably being built without including sources. That resulting jar can be deployed but not imported into studio. To include the sources set the maven property -DattachMuleSources as explained in the documentation page https://docs.mulesoft.com/mule-runtime/4.1/mmp-concept#import-your-generated-jar-to-anypoint-studio