본문 바로가기

open source/maven & hudson

이클립스 maven update project configuration 후 에러발생

[ 문제점 ]


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.