m2eclipse + WTP ... 팁???




기존에 메이븐 디펜던시와 WTP 를 연동해서 쓸 때는 ".classpath" 파일을 수정해서 사용하였습니다.


/.classpath




<classpath>



...







<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">





<attributes>





<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>





</attributes>









</classpathentry>





...





</classpath>






위의 방법보다는 배포와 직접 연관이 있는 "org.eclipse.wst.common.component" 파일을 수정하는게 일관성이 있어보입니다.


/.settings/org.eclipse.wst.common.component




<project-modules id="moduleCoreId" project-version="1.5.0">





<wb-module>





...







<dependent-module deploy-path="/WEB-INF/lib"



handle="module:/classpath/con/org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">





<dependency-type>consumes</dependency-type>





</dependent-module>







...





</wb-module>





</project-modules>






나만 그런가;;;


댓글

가장 많이 본 글