Last week I could deploy my project without error and now I am getting this when I try to deploy the same code set from GitHub to AnyPoint Runtime Fabric (RTF) via an Azure Pipeline. what would cause the change?
Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.7.1:deploy (default-deploy) on project int-corerms-helms:
Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:3.7.1:deploy failed:
MessageBodyReader not found for media type=application/octet-stream, type=class org.mule.tools.client.arm.model.Environments, genericType=class org.mule.tools.client.arm.model.Environments.
That error could happen if you are trying to deploy to Anypoint Runtime Fabric using a Connected App credentials for authentication in Mule Maven Plugin and the Connected App doesn't has the right scope added.
All the following scopes need to be added:
See more details on this KB article: https://help.mulesoft.com/s/article/RTF-Deployment-With-Connected-App-Is-Failing