Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- SQL
- window
- SSL
- mybatis
- mapreduce
- MSSQL
- Eclipse
- react
- R
- xPlatform
- Android
- tomcat
- plugin
- Python
- Java
- JavaScript
- Express
- hadoop
- Kotlin
- vaadin
- 공정능력
- 보조정렬
- Spring
- table
- Sqoop
- GIT
- NPM
- es6
- IntelliJ
- SPC
Archives
- Today
- Total
DBILITY
maven uber-jar packaging 본문
반응형
https://maven.apache.org/plugins/maven-shade-plugin/examples/includes-excludes.html
POM예시
<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">
...
<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>false</minimizeJar>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
</project>
minimizeJar가 true일 경우 java code나 dependancy에 dynamic class loading이 사용되면
전부 일일이 포함시켜야 하니, 용량에 신경쓸 일 없다면 그냥 false로 사용이라고 함.
uber-jar 또는 fat-jar라고도 함
반응형
'java > basic' 카테고리의 다른 글
java lambda map,reduce,filter summary (0) | 2018.05.25 |
---|---|
java lambda (0) | 2018.05.25 |
maven build war package exclude paths or files ( 특정 경로 제외 ) (0) | 2018.04.11 |
java timeserver 시간 확인하기 (0) | 2017.12.26 |
java summer time ( daylight saving time, DST ) (0) | 2017.12.16 |
Comments