메이븐에서 이게 가능한가요? 

Ant에서는 classpath 엘리먼트를 통해서 클래스가 포함된 디렉토리를 컴파일 패스에 추가할 수 있습니다.

    <classpath>
      <pathelement location="mydir/classes"/>
    </classpath>

이것과 동일한 기능을하는 메이븐 설정/플러그인이 있나요?

아무리 구글링하고 찾아봐도 방법을 모르겠습니다.

아시는 분은 좀 알려주시길...

Posted by 에코지오
,
- this.getClass().getResource();

- this.getClassLoader().getResource();

- Thread.currentThread().getContextClassLoader().getResource();

- MyClass.class.getResource();

위 4가지의 차이점은 아래 링크 참조.

http://www.javaworld.com/javaworld/javaqa/2002-11/02-qa-1122-resources.html
http://www.jroller.com/coreteam/entry/loading_configuration_files_under_web


그럼 스프링 사용환경에서는 보통 어떻게 로딩하지?

일단 링크 걸어두고 읽어봐야겠다.

http://static.springframework.org/spring/docs/2.5.x/reference/resources.html
http://www.carbonfive.com/community/archives/2007/05/using_classpath.html


Posted by 에코지오
,