Maven 프로젝트 컴파일 시 resources 가 복사되지 않는 경우

maven 프로젝트를 컴파일 할 때, resources 디렉토리가 복사되지 않아 컴파일 에러가 발생할 경우가 있다. 이 경우 pom.xml에서 resources 설정을 해줬는지 확인해 본다.

			    <resources>
			        <resource>
			            <directory>src/main/java</directory>
			            <includes>                      
			                <include>**/*.xml</include>
			            </includes>
			        </resource>
			        <resource>
			            <directory>src/main/resources</directory>
			        </resource>
			    </resources>

You may also like...

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다