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
- mTLS
- mapstruct
- 상호 인증
- 개방 폐쇄 원칙
- try - with - resources
- 데이터 압축
- requestheaderdto
- Srping MVC
- Checked Exception
- Java Graphql
- Tomcat DBCP
- Java Rest
- WildFly
- Reading HttpServletRequest Multiple Times
- tomcat jndi
- NoUniqueBeanDefinitionException
- graphql
- Jndi DataSource
- Java Singleton
- AfterMapping
- Request Body 여러 번 사용
- Socket is closed
- 바이트 절삭
- Open Close Principal
- Unchecked Exception
- HandlerMethodArgumentResolver
- java
- Sub Bytes
- 이중정렬
- Graphql Client
Archives
- Today
- Total
Developer Sang Guy
[MAVEN] JAR, WAR 생성 시 Resource File Exclude 본문

application.properties를 Jar, War 생성 시 제외하고 싶을 경우 pom.xml <build><plugins> 태그 안에 아래와 같이 코드 작성하면 된다.
JAR
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
This is where the exclusion occurs
<exclude>**/application.properties</exclude>
</excludes>
</configuration>
</plugin>
WAR
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<packagingExcludes>**/application.properties</packagingExcludes>
</configuration>
</plugin>'Others' 카테고리의 다른 글
| [Wildfly] 로그가 안나와요(sl4j 충돌) (0) | 2023.03.30 |
|---|---|
| [Mysql]Full Text Search ngram (0) | 2023.02.17 |
| [Mysql]Full Text Search (0) | 2023.02.15 |
| [Apache] ServerName, ServerAlias 동작 방식 (0) | 2023.01.12 |
| SRI 생성 방법 (0) | 2022.12.16 |
Comments