Back/Etc
Maven build 시 profile설정 (eclipse)
밍꿔
2019. 8. 27. 13:29
반응형
*사용이유
local (개발자 개인 PC), development , release등 deploy 환경에 따라 달라져야할 정보들(JDBC URL, logging level, properties, 기타 resource등)을 maven profile 을 이용하여 build 시 각각 다르게 설정 할 수 있습니다
1. 예시 폴더 구조.

2. pom.xml 에 profiles 기술

3. pom.xml 의 build element 에 resource 를 찾는 경로를 변경

4. Run Configurations

위 사진처럼 맨 마지막 release를 파라미터로 넘김.
반응형