Hi,
I have use testIncludes which works when configuring the
compiler plugin. See the following:
<sourceDirectory>.</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<includes>
<include
implementation="java.lang.String">src/main/java/**/*.java</include>
<include
implementation="java.lang.String">target/schema-src/**/*.java</include>
</includes>
<testIncludes>
<testInclude
implementation="java.lang.String">src/test/java/**/*.java</testInclude>
</testIncludes>
</configuration>
</plugin>
Dennis.
-----Original Message-----
From: Rinku [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 29, 2005 4:10 AM
To: Maven Users List
Subject: Re: [m2] how can I add more source directory?
Hi,
you can use the build-helper-plugin available from the Mojo sandbox to
add
an extra source dir.
http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/build-helper-maven-
plugin/
This allows adding an extra source directory, though I don't think it
will
update/change the pom.xml for the extra directory added.
Cheers,
Rahul
----- Original Message -----
From: "Man-Chi Leung" <[EMAIL PROTECTED]>
To: "Maven Users List" <[email protected]>
Sent: Thursday, December 29, 2005 11:58 PM
Subject: [m2] how can I add more source directory?
>I would like to add more source directory for groovy script.
>
> but if I add the following in pom.xml, the default setting of src/
> main/java will be removed!
>
> <build>
> <sourceDirectory>src/main/groovy</sourceDirectory>
> ...
> </build>
>
>
> YES ! the following will caused xml syntax error!!
> <build>
> <sourceDirectory>src/main/groovy:</sourceDirectory>
> <sourceDirectory>src/main/groovy</sourceDirectory>
> </build>
>
> pls help
>
> Regards,
> manchi
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]