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]