프로젝트 우클릭 Run AS > maven build
Goals : clean install package -P dev
dev 이 부분은 pom.xml에 설정해준 <profiles> 에 맞게 각자 다른 properties 설정 가능하다 (생략가능)
pom.xml
<profiles>
<!-- Local server -->
<profile>
<id>local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<env>local</env>
</properties>
</profile>
<!-- Development server -->
<profile>
<id>dev</id>
<properties>
<env>dev</env>
</properties>
</profile>
<!-- real server -->
<profile>
<id>release</id>
<properties>
<env>release</env>
</properties>
</profile>
</profiles>