Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ezhov-da/94484691d709edd4d89d443381999c07 to your computer and use it in GitHub Desktop.
Save ezhov-da/94484691d709edd4d89d443381999c07 to your computer and use it in GitHub Desktop.
Сборка в один jar
<!--http://maven.apache.org/plugins/maven-assembly-plugin/usage.html-->
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>ru.ezhov.App</mainClass>
</manifest>
</archive>
<finalName>${artifactId}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-assembly
</id> <!-- this is used for inheritance merges -->
<phase>package
</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment