web.xml 파일에 다음과 같은 내용이 있다고 가정 해 봅니다.web.xml에서 하드 코드 된 값을 제거하는 방법
<filter name="foo">
<init-param>
<param-name>fooBarUrl</param-name>
<param-value>http://foo.bar.com</param-value>
</init-param>
</filter>
dev/test/production에는 다른 url 값 (위의 param-value)이 있다고 가정 해보십시오. pom에서 필터 및/또는 프로파일을 사용하여 응용 프로그램이 다른 단계로 이동할 때마다 변경하지 않아도되는 방법이 있습니까? I.E. DEV 것이 http://localfoo.com 것, 테스트를 위해 등, http://testserver.com 것
당신은 Maven의 resource filtering 소유주는 빌드시, 예를 들어,에 값 속성을 대체 사용할 수 있습니다
리소스 필터링이 유망 해 보입니다. 나는 당신이 http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html에 대해 이것에 대해 이야기하고 있다고 생각합니다. – ryoung