title: Failed to execute goal org.codehous.mojo:exec-maven-plugin:1.4.0:java
body: <p>I've been trying to run this Maven program all day but to no avail. I keep getting this error:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal org.codehous.mojo:exec-maven-plugin:1.4.0:java (default-cli) on project get-with-jersey: The parameters ‘mainClass’ for goal org.codehaus.mojo:exec-maven-plugin:1.4.0:java are missing or invalid</p>
  </blockquote>
  
  <p>After running <code>mvn exec:java</code>.</p>
  
  <p><code>mvn clean install</code> works fine and builds, but running the program fails.</p>
  
  <p>I downloaded and placed the plugin for 1.4.0 where I believe Maven lets all it's plugins exist, but I can't figure out why it keeps crashing.</p>
  
  <p>Here is my pom.xml.</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.bridge.rest.jersey&lt;/groupId&gt;
  &lt;artifactId&gt;get-with-jersey&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;Get Request with Jersey&lt;/name&gt;
  
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;maven2-repository.java.net&lt;/id&gt;
          &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
          &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  
  &lt;dependencies&gt;
  
      &lt;!--
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.2.1&lt;/version&gt;
      &lt;/dependency&gt;
      --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
          &lt;version&gt;1.9&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
          &lt;version&gt;1.9&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
          &lt;version&gt;1.9&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt; 
          &lt;groupId&gt;org.hsqldb&lt;/groupId&gt; 
          &lt;artifactId&gt;hsqldb&lt;/artifactId&gt; 
          &lt;version&gt;2.0.0&lt;/version&gt; 
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks for your help, looking forward to your answers!</p>