-rw-r--r--  1 tyu  staff  5691 May 16 08:58
target/classes/com/ciq/m2m/platform/mmp2/input/OtaUploadRecordReader.class

That test passes.

But the same problem appears for other tests:
arvindmac:m2m-platform tyu$ vi
target/surefire-reports/com.ciq.m2m.platform.mmp2.MeasureMergeReducerTest.txt

java.lang.NoClassDefFoundError: com/iq/m2m/platform/tester/MergePkgsTester

Although the class has been generated:
...
-rw-r--r--  1 tyu  staff  5141 May 16 08:58
target/classes/com/ciq/m2m/platform/tester/MergePkgsTester.class

On Sun, May 16, 2010 at 7:16 AM, Anders Hammar <[email protected]> wrote:

> 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 <[email protected]> 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