[ 문제점 ]
1. 이클립스에서 maven update project configuration 후에 톰캣 start
2. java.lang.NoClassDefFoundError 발생함.
3. 조금의 삽질 후에 .classpath가 변경된 것을 확인 함.
[ 해결 ] Maven Dependenciese를 잡아준다.
1.
Right Click on your web project in
Project Explorer -> select 'Properties'. Under project properties, select 'Deployment Assembly'.
The Deployment Assembly property page shows the content that will be published as a assembled artifact by Eclipse to the server. You need to tell Eclipse that you want all your Maven dependencies to be published too.
2.
To do that, click 'Add' button, then select 'Java Build Path Entries'. Click Next and select Maven Dependencies. This will publish the Maven dependency JAR files to the lib folder when Eclipse publishes your project to WST server.
'open source > maven & hudson' 카테고리의 다른 글
메이븐 플러그인 :: maven-jar-plugin, maven-dependency-plugin (0) | 2013.06.12 |
---|---|
메이븐 + 스프링 + ibatis + 허드슨 연동 구축 4탄 - 허드슨 연동 배포 (1) | 2013.01.11 |
메이븐 + 스프링 + ibatis + 허드슨 연동 구축 3탄 - 메이븐 + 스프링 + 아이바티스 (0) | 2013.01.10 |
메이븐 + 스프링 + ibatis + 허드슨 연동 구축 2탄 - 메이븐 폴더 구조 변경하기 (0) | 2013.01.09 |
메이븐 + 스프링 + ibatis + 허드슨 연동 구축 1탄 - 이클립스 메이븐 프로젝트 생성 (0) | 2013.01.09 |