Maven Executable JAR: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
Line 9: Line 9:
<pre>
<pre>
<project>
<project>
   [...]
   ...
   <build>
   <build>
     [...]
     ...
     <plugins>
     <plugins>
       <plugin>
       <plugin>
Line 17: Line 17:
         <version>2.2-beta-5</version>
         <version>2.2-beta-5</version>
         <configuration>
         <configuration>
           [...]
           ...
           <archive>
           <archive>
             <manifest>
             <manifest>
Line 24: Line 24:
           </archive>
           </archive>
         </configuration>
         </configuration>
         [...]
         ...
       </plugin>
       </plugin>
       [...]
       ...
</project>
</project>
</pre>
</pre>

Latest revision as of 15:48, 7 November 2016

Internal

Overview

pom.xml

<project>
  ...
  <build>
    ...
    <plugins>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.2-beta-5</version>
        <configuration>
          ...
          <archive>
            <manifest>
              <mainClass>org.sample.App</mainClass>
            </manifest>
          </archive>
        </configuration>
        ...
      </plugin>
      ...
</project>