Try adding these within <build>:

<sourceDirectory>${maven.src.dir}</sourceDirectory>
<unitTestSourceDirectory>${maven.src.dir}</unitTestSourceDirectory> 

Notice that /com is not specified.

> -----Original Message-----
> From: Ben Anderson [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 03, 2004 5:24 AM
> To: [EMAIL PROTECTED]
> Subject: maven test:test
> 
> Hi,
> I have this in my project.xml
>   <build>
>     <sourceDirectory>${maven.src.dir}/com</sourceDirectory>
>     <resources>
>       <resource>
>         <directory>${maven.src.dir}</directory>
>         <includes>
>           <include>*.xml</include>
>           <include>*.dtd</include>
>         </includes>
>       </resource>
>     </resources>
>     <unitTest>
>       <includes>
>         <include>${maven.src.dir}/**/*Test*.java</include>
>       </includes>
>       <excludes>
>         <exclude>${maven.src.dir}/**/TestAll.java</exclude>
>         <exclude>${maven.src.dir}/**/*Abstract*.java</exclude>
>       </excludes>
>     </unitTest>
>   </build>
> 
> my maven.src.dir I define elsewhere, but that's beside the point.  I
> have a Test file right along side the rest of my src code.  When I do
> java:compile, it gets compiled.  But when I do test:test I get "no
> tests to run".  I tried taking out the ${maven.src.dir} inside the
> <unitTest> tags, but that didn't help.  Any ideas what I'm doing
> wrong?
> Thanks,
> Ben
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to