SYMPTOM
You are trying to deploy an application from Anypoint Studio and its failing and in the Studio Error log below error is seen:
[ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.6.3:process-classes (default-process-classes) on project xxxxx-xxx-api:
Execution default-process-classes of goal org.mule.tools.maven:mule-maven-plugin:3.6.3:process-classes failed:
Exception resolving param 'responseTimeout' with value '${token.timeout}' at 'generate-token.xml:42:5' (java.lang.NumberFormatException:
For input string: "${token.timeout}") -> [Help 1]
........................................................
........................................................
Caused by: java.lang.NumberFormatException: For input string: "${token.timeout}"
at java.lang.NumberFormatException.forInputString (NumberFormatException.java:65)
CAUSE
Wrong Key is used in the Global Property Configuration
SOLUTION
[1] Make sure you are using the latest version of Mule Maven Plugin available in your application in pom.xml. Refer
Mule Maven Plugin Release Notes[2] Verify the Key used in Global Property Configuration is the correct one.
Navigate to your Application -> Global.xml -> Edit Global Property (Key)
