티스토리 뷰

pom.xml


<profile>
        <id>dev</id>
        <build>
            <filters>
                <filter>src/main/filters/dev.properties</filter>
            </filters>
        </build>
    </profile>
    <profile>
        <id>svc</id>
        <build>
            <filters>
                <filter>src/main/filters/svc.properties</filter>
            </filters>
        </build>
    </profile>
</profiles>


dev.properties 샘플
db.driver=oracle.jdbc.OracleDriver
db.url=jdbc:oracle:thin:@IP:PORT:SID
db.username=username
db.password=passwd


jenkins 배포 시
Build > Goals and options 에서 'clean package -P svc' 설정
개발일 경우 'clean package -P dev'


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
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
글 보관함