You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sidharth Kuruvila <si...@gmail.com> on 2007/07/02 17:12:17 UTC
How can I compile multiple test source directories
Hi,
My project has the test source spread between two directories. How
can i compile and run them?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How can I compile multiple test source directories
Posted by Sidharth Kuruvila <si...@gmail.com>.
One of the directories is used by a couple of other projects and is
stored independently on cvs. So I can't simply merge the directories.
On 02-Jul-07, at 10:47 PM, Wayne Fay wrote:
> Is there a reason you can't consolidate the test source directories
> into one common directory? Then Maven would work with no troubles and
> Netbeans would see both etc.
>
> Wayne
>
> On 7/2/07, Sidharth Kuruvila <si...@gmail.com> wrote:
>> Thanks Tim, that seems to work. The only problem is that netbeans
>> can't see the second directory but I think I can live with that
>> for now.
>>
>>
>> On 02-Jul-07, at 9:49 PM, Tim Kettler wrote:
>>
>> > Hi,
>> >
>> > use the build-helper plugin[1] from the mojo project to attach the
>> > extra test-source directory to the pom.
>> >
>> > -Tim
>> >
>> > [1] http://mojo.codehaus.org/build-helper-maven-plugin/
>> >
>> > Sidharth Kuruvila schrieb:
>> >> Tried this
>> >> <plugin>
>> >> <artifactId>maven-resources-plugin</artifactId>
>> >> <executions>
>> >> <execution>
>> >> <id>test-src-copy</id>
>> >> <phase>generate-test-resources</phase>
>> >> <goals>
>> >> <goal>testResources</goal>
>> >> </goals>
>> >> <configuration>
>> >> <outputDirectory>testsrc</outputDirectory>
>> >> <resources>
>> >> <resource>
>> >> <directory>test</directory>
>> >> </resource>
>> >> <resource>
>> >> <directory>../testutils/src</directory>
>> >> </resource>
>> >> </resources>
>> >> </configuration>
>> >> </execution>
>> >> </executions>
>> >> </plugin>
>> >> but it didn't seem to work.
>> >> On 02-Jul-07, at 9:28 PM, <an...@nsn.com> wrote:
>> >>> Hm,
>> >>>
>> >>> Copy them to a single directory first in phase "processing
>> sources"?
>> >>>
>> >>> Andreas
>> >>>
>> >>>> -----Original Message-----
>> >>>> From: ext Sidharth Kuruvila [mailto:sidharth.kuruvila@gmail.com]
>> >>>> Sent: 02 July, 2007 17:12
>> >>>> To: Maven Users List
>> >>>> Subject: How can I compile multiple test source directories
>> >>>>
>> >>>> Hi,
>> >>>>
>> >>>> My project has the test source spread between two directories.
>> >>>> How can i compile and run them?
>> >>>>
>> >>>>
>> -------------------------------------------------------------------
>> >>>> --
>> >>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >>>> For additional commands, e-mail: users-help@maven.apache.org
>> >>>>
>> >>>>
>> >>>
>> >>>
>> --------------------------------------------------------------------
>> >>> -
>> >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >>> For additional commands, e-mail: users-help@maven.apache.org
>> >>>
>> >>
>> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >> For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How can I compile multiple test source directories
Posted by Wayne Fay <wa...@gmail.com>.
Is there a reason you can't consolidate the test source directories
into one common directory? Then Maven would work with no troubles and
Netbeans would see both etc.
Wayne
On 7/2/07, Sidharth Kuruvila <si...@gmail.com> wrote:
> Thanks Tim, that seems to work. The only problem is that netbeans
> can't see the second directory but I think I can live with that for now.
>
>
> On 02-Jul-07, at 9:49 PM, Tim Kettler wrote:
>
> > Hi,
> >
> > use the build-helper plugin[1] from the mojo project to attach the
> > extra test-source directory to the pom.
> >
> > -Tim
> >
> > [1] http://mojo.codehaus.org/build-helper-maven-plugin/
> >
> > Sidharth Kuruvila schrieb:
> >> Tried this
> >> <plugin>
> >> <artifactId>maven-resources-plugin</artifactId>
> >> <executions>
> >> <execution>
> >> <id>test-src-copy</id>
> >> <phase>generate-test-resources</phase>
> >> <goals>
> >> <goal>testResources</goal>
> >> </goals>
> >> <configuration>
> >> <outputDirectory>testsrc</outputDirectory>
> >> <resources>
> >> <resource>
> >> <directory>test</directory>
> >> </resource>
> >> <resource>
> >> <directory>../testutils/src</directory>
> >> </resource>
> >> </resources>
> >> </configuration>
> >> </execution>
> >> </executions>
> >> </plugin>
> >> but it didn't seem to work.
> >> On 02-Jul-07, at 9:28 PM, <an...@nsn.com> wrote:
> >>> Hm,
> >>>
> >>> Copy them to a single directory first in phase "processing sources"?
> >>>
> >>> Andreas
> >>>
> >>>> -----Original Message-----
> >>>> From: ext Sidharth Kuruvila [mailto:sidharth.kuruvila@gmail.com]
> >>>> Sent: 02 July, 2007 17:12
> >>>> To: Maven Users List
> >>>> Subject: How can I compile multiple test source directories
> >>>>
> >>>> Hi,
> >>>>
> >>>> My project has the test source spread between two directories.
> >>>> How can i compile and run them?
> >>>>
> >>>> -------------------------------------------------------------------
> >>>> --
> >>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>> For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>> --------------------------------------------------------------------
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How can I compile multiple test source directories
Posted by Sidharth Kuruvila <si...@gmail.com>.
Thanks Tim, that seems to work. The only problem is that netbeans
can't see the second directory but I think I can live with that for now.
On 02-Jul-07, at 9:49 PM, Tim Kettler wrote:
> Hi,
>
> use the build-helper plugin[1] from the mojo project to attach the
> extra test-source directory to the pom.
>
> -Tim
>
> [1] http://mojo.codehaus.org/build-helper-maven-plugin/
>
> Sidharth Kuruvila schrieb:
>> Tried this
>> <plugin>
>> <artifactId>maven-resources-plugin</artifactId>
>> <executions>
>> <execution>
>> <id>test-src-copy</id>
>> <phase>generate-test-resources</phase>
>> <goals>
>> <goal>testResources</goal>
>> </goals>
>> <configuration>
>> <outputDirectory>testsrc</outputDirectory>
>> <resources>
>> <resource>
>> <directory>test</directory>
>> </resource>
>> <resource>
>> <directory>../testutils/src</directory>
>> </resource>
>> </resources>
>> </configuration>
>> </execution>
>> </executions>
>> </plugin>
>> but it didn't seem to work.
>> On 02-Jul-07, at 9:28 PM, <an...@nsn.com> wrote:
>>> Hm,
>>>
>>> Copy them to a single directory first in phase "processing sources"?
>>>
>>> Andreas
>>>
>>>> -----Original Message-----
>>>> From: ext Sidharth Kuruvila [mailto:sidharth.kuruvila@gmail.com]
>>>> Sent: 02 July, 2007 17:12
>>>> To: Maven Users List
>>>> Subject: How can I compile multiple test source directories
>>>>
>>>> Hi,
>>>>
>>>> My project has the test source spread between two directories.
>>>> How can i compile and run them?
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How can I compile multiple test source directories
Posted by Tim Kettler <ti...@udo.edu>.
Hi,
use the build-helper plugin[1] from the mojo project to attach the extra
test-source directory to the pom.
-Tim
[1] http://mojo.codehaus.org/build-helper-maven-plugin/
Sidharth Kuruvila schrieb:
> Tried this
> <plugin>
> <artifactId>maven-resources-plugin</artifactId>
> <executions>
> <execution>
> <id>test-src-copy</id>
> <phase>generate-test-resources</phase>
> <goals>
> <goal>testResources</goal>
> </goals>
> <configuration>
> <outputDirectory>testsrc</outputDirectory>
> <resources>
> <resource>
> <directory>test</directory>
> </resource>
> <resource>
> <directory>../testutils/src</directory>
> </resource>
> </resources>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> but it didn't seem to work.
>
> On 02-Jul-07, at 9:28 PM, <an...@nsn.com> wrote:
>
>> Hm,
>>
>> Copy them to a single directory first in phase "processing sources"?
>>
>> Andreas
>>
>>> -----Original Message-----
>>> From: ext Sidharth Kuruvila [mailto:sidharth.kuruvila@gmail.com]
>>> Sent: 02 July, 2007 17:12
>>> To: Maven Users List
>>> Subject: How can I compile multiple test source directories
>>>
>>> Hi,
>>>
>>> My project has the test source spread between two directories.
>>> How can i compile and run them?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How can I compile multiple test source directories
Posted by Sidharth Kuruvila <si...@gmail.com>.
Tried this
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>test-src-copy</id>
<phase>generate-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
<configuration>
<outputDirectory>testsrc</outputDirectory>
<resources>
<resource>
<directory>test</directory>
</resource>
<resource>
<directory>../testutils/src</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
but it didn't seem to work.
On 02-Jul-07, at 9:28 PM, <an...@nsn.com> wrote:
> Hm,
>
> Copy them to a single directory first in phase "processing sources"?
>
> Andreas
>
>> -----Original Message-----
>> From: ext Sidharth Kuruvila [mailto:sidharth.kuruvila@gmail.com]
>> Sent: 02 July, 2007 17:12
>> To: Maven Users List
>> Subject: How can I compile multiple test source directories
>>
>> Hi,
>>
>> My project has the test source spread between two directories.
>> How can i compile and run them?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: How can I compile multiple test source directories
Posted by an...@nsn.com.
Hm,
Copy them to a single directory first in phase "processing sources"?
Andreas
>-----Original Message-----
>From: ext Sidharth Kuruvila [mailto:sidharth.kuruvila@gmail.com]
>Sent: 02 July, 2007 17:12
>To: Maven Users List
>Subject: How can I compile multiple test source directories
>
>Hi,
>
>My project has the test source spread between two directories.
>How can i compile and run them?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org