The scope "provided" can be used for this situation.
I would restructure my project as the following:
parent directory
+pom.xml
/stubs module
++pom.xml
++src/main/java
/distribute module
++pom.xml {includes <dependency> on stubs with <scope>provided</scope>}
++src/main/java
This is probably the easiest way to achieve what you're looking for.
Wayne
On 4/23/06, Brandon Goodin <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I have a situation where i use several java/class stubs for
> compilation. I want these source files to be compiled and used during
> compilation. But, i do not want them distributed in the jar artifact.
> How do i go about having source files that are not distributed with
> the jar artifact but are used during compile?
>
> |_src
> |_main
> |_java
> | |_source to distribute
> |_devsrc
> |_ source to compile against but not distribute
>
> Thanks
> Brandon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>