mulemulesoftanypoint-studioanypoint-rtfmule-maven-plugin

cannot find 'replicationfactor' in class org.mule.tools.model.anypoint.RuntimeFabricDeploymentSettings


I cloned a flow from production that has Kafka Message Listener. Replaced Kafka Message Listener with HTTP listener, so that I can load input payload and test it in local.

but when I click 'Test Connection' on Listener configuration (localhost and 8082), I get an error "Test Connection failed"[info] Scanning for project..

Details error log from help tab says - "Cannot find 'replicationFactor' in class org.mule.tools.model.anypoint.RuntimeFabricDeploymentSettings

Can someone please help me in here


Solution

  • The issue probably is that, unrelated to your change, there has been a change in the Mule Maven Plugin used to deploy to Runtime Fabric:

    replicationFactor was renamed to replicas, and now is nested under <runtimeFabricDeployment>.
    

    You need to update the configuration of the plugin in the pom.xml to be compatible with newer versions of the plugin.