Maven Executable JAR: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Maven assembly Plugin")
 
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[Maven_assembly_Plugin#Other_Assembly_Use_Cases|Maven assembly Plugin]]
* [[Maven_assembly_Plugin#Other_Assembly_Use_Cases|Maven assembly Plugin]]
=Overview=
=pom.xml=
<pre>
<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>
</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>