You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Man-Chi Leung <ma...@gmail.com> on 2005/12/29 11:58:39 UTC

[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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] how can I add more source directory?

Posted by Rinku <ra...@gmail.com>.
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" <ma...@gmail.com>
To: "Maven Users List" <us...@maven.apache.org>
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: 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