title: Getting an error while executing goals from maven plugin flexmojos-maven-plugin
body: <p>I get the below error while executing the default lifecycle 'clean install' from my maven project.</p>
  
  <pre><code>java.lang.String cannot be cast to org.apache.maven.lifecycle.mapping.LifecyclePhase
  </code></pre>
  
  <p>My code uses the flexmojos-maven-plugin. As per the jira thread <a href="https://issues.apache.org/jira/browse/MNG-5958" rel="nofollow">https://issues.apache.org/jira/browse/MNG-5958</a> this issue has been resolved, but nowhere could I find how.</p>
  
  <p>As per the solution I would have to update Lifecycle.java. Updating Lifecycle.java would mean updating maven-core.jar. </p>
  
  <p>Will I have to go the extent of updating a standard jar which could impact many other files which are using this jar.</p>
  
  <p>I am using maven 3.3.9 and java 8.</p>