Created
March 21, 2019 01:29
-
-
Save samsee/24813b4bba118c75991ccccf354d0404 to your computer and use it in GitHub Desktop.
Java Build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 의존성 jar를 포함하여 빌드 --> | |
<properties> | |
<main.class>YourMainClass</main.class> <!-- jar 실행할 메인 클래스 --> | |
</properties> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>3.2.1</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<transformers> | |
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
<mainClass>${main.class}</mainClass> | |
</transformer> | |
</transformers> | |
</configuration> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment