You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Richard Allen <ri...@gtri.gatech.edu> on 2005/11/02 20:16:33 UTC

[m2] How to make jar project recompile dependent jar project

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


Re: [m2] How to make jar project recompile dependent jar project

Posted by Alexandre Poitras <al...@gmail.com>.
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 <richard.allen@gtri.gatech.edu > 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Alexandre Poitras
Québec, Canada