title: How to create an executable in maven?
body: <p>I am working on a compiler project. What I am suppose to do is, I have to generate an executable called "ctop" using maven. By using that executable I have to be able to do "ctop cfile pfile" which will generate an assembly file called "pfile" from a program in c called "cfile". As I have never used maven before I have no idea how to do that. I'm using eclipse IDE and I have created maven project as well. But I have no idea how to work with maven. I have a main file located at (/src/main/java/me/name/project_compiler/Main.java). I have to be able to execute this and other mains.</p>
  
  <p>My pom.xml file looks like this</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;me.name&lt;/groupId&gt;
    &lt;artifactId&gt;project-compiler&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
    &lt;name&gt;project-compiler&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>