두리공장
스프링 부트 프로젝트에서 OZ리포트 jar 라이브러리 사용시.. 본문
Oz리포트를 라이브러리로 사용하는 경우가 있었다.
일단 ozsfw80.jar 파일을 /src/main/resources/libs/ozsfw80.jar 에 복사하자
그리고 나서 메이븐 플러그인을 pom.xml 의 build>plugins 에 추가한다.
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
마지막으로 dependency를 추가한다.
<dependency>
<groupId>oz</groupId>
<artifactId>report</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${pom.basedir}/src/main/resources/libs/ozsfw80.jar</systemPath>
</dependency>
끝.
'java' 카테고리의 다른 글
Mybatis 에서 model 에서 innerClass 를 사용하려면?? (0) | 2022.07.28 |
---|---|
[spring batch] 스프링 부트 프로젝트에 스프링 배치 이식하기 (0) | 2022.07.18 |
[Spring batch] Step 9 - 배치시작을 위한 config 및 h2 메모리DB구성, 그리고 itemprocessor 사용 (0) | 2022.06.11 |
spring job scheduler & shedLock 적용 (0) | 2022.06.09 |
[Spring & jQuery] 파일 및 Json 데이터 업로드 (file & json data) (0) | 2022.05.30 |