Skip to content
Bug Barometer
All issues
Solution in Progress

MuleSoft / Anypoint Code Builder

Anypoint Code Builder | Local Run/Debug Sets app.name to the Packaged JAR Name Ending in -mule-application

Summary

When you run or debug a Mule 4 application locally in Anypoint Code Builder, the embedded Mule runtime deploys the application under the name of its packaged JAR file (<finalName>-mule-application) instead of the project name.


As a result, the app.name property, and anything derived from it, has a different value locally than in Anypoint Studio, CloudHub, CloudHub 2.0 and Runtime Fabric. Properties files named after ${app.name} are not found, base paths change, and the application can fail to start or behave differently when run locally from Anypoint Code Builder.

Workaround

No workaround is available at this time

Steps to reproduce

1. Create a Mule 4 project with artifactId app-name-repro and version 1.0.0-SNAPSHOT.

2. Add a Scheduler (frequency 1 second) with a Logger that prints p('app.name').

3. Run the application locally in Anypoint Code Builder.

4. Check the Logger output and the "New app" line in the runtime log.

Error details

Logger output: app.name = app-name-repro-1.0.0-SNAPSHOT-mule-application Runtime log "New app" line shows the application deployed as [artifactId]-[version]-mule-application instead of [artifactId]. Properties files referenced via ${app.name} are not found, or the application fails to start, only when run locally from Anypoint Code Builder.

History

  1. Description updated

    Nov 30, 2026

  2. First tracked here as Solution in Progress with 1 report

    Nov 30, 2026