Is OtaUploadRecordReader a class you've written and that's in the same Maven
project? If so, check that it is being compiled by checking that the .class
file exists under target/classes/

If it's not being compiled there's some error you need to fix in your
project.

/Anders

On Fri, May 14, 2010 at 19:41, Ted Yu <yuzhih...@gmail.com> wrote:

> Hi,
> Here is the information about maven I use:
>
> Apache Maven 2.2.0 (r788681; 2009-06-26 06:04:01-0700)
> Java version: 1.6.0_17
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.6.3" arch: "x86_64" Family: "mac"
>
> I see strange unit test failure which was due to a dependent class in the
> same package not being found:
> java.lang.NoClassDefFoundError:
> com/ciq/m2m/platform/mmp2/input/OtaUploadRecordReader
>        at
>
> com.ciq.m2m.platform.mmp2.input.OtaUploadRecordReaderSingleFileTest.createRecordReader(OtaUploadRecordReaderSingleFileTest.java:18)
>
> In Eclipse, I can successfully run the same unit test.
>
> Can someone provide hint ?
>
> Thanks
>

Reply via email to