You can accomplish this by having a parent project. Look for the mail "Guide
to using Eclipse with Maven 2.x" submitted to list not so long agon in the
section "Multiple Module Project". I hope it's help.

On 11/2/05, Richard Allen <[EMAIL PROTECTED] > wrote:
>
> I'm new to Maven. I have the following structure where JAR2 depends on
> JAR1.
>
> :
> |- JAR1
> | |- pom.xml
> | :
> |
> |- JAR2
> | |- pom.xml
> : :
>
> The JAR1 and JAR2 projects are developed concurrently. I currently have
> JAR1 installed in my local repository and the pom.xml for JAR2 lists
> JAR1 as a dependency. This builds fine. However, is there a way to have
> JAR1 recompiled when JAR2 is compiled, only if the source for JAR2 has
> changed (updated from Subversion)?
>
> Thanks,
> Richard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

Reply via email to