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 |
Tags
- 이중정렬
- mTLS
- requestheaderdto
- Java Graphql
- HandlerMethodArgumentResolver
- graphql
- 데이터 압축
- Sub Bytes
- Tomcat DBCP
- Srping MVC
- 바이트 절삭
- Request Body 여러 번 사용
- Unchecked Exception
- NoUniqueBeanDefinitionException
- mapstruct
- Open Close Principal
- Jndi DataSource
- Graphql Client
- Socket is closed
- try - with - resources
- 개방 폐쇄 원칙
- Java Rest
- Java Singleton
- AfterMapping
- Reading HttpServletRequest Multiple Times
- Checked Exception
- 상호 인증
- java
- WildFly
- tomcat jndi
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