You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Stefanutti, Mario" <ms...@mail.tim.it> on 2004/05/10 13:18:50 UTC

Question about dependency

Hi,

 

I have two sub-projects PA and PB (two simple libraries), and PB depends
on PA.

 

I am using the multiproject goals to build the entire project, but when
I compile PB, maven tries to download the PA generated jar file (present
in the other sub-tree), but it cannot find the file from the PB
subproject.

 

+----------------------------------------

| Generating j2ee_commons

| Memory: 6M/7M

+----------------------------------------

Trying to download eai_commons-1.0.0.jar.

 

Do you know how these problems have to be approached?

 

Do I have to use an http central repository also for the internal
dependencies and use the postGoal task from PA to copy the jar PA to the
http server?

 

Thanks, Mario

<DIV><FONT face=Arial size=2><I><br>This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.<br><br><br>°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°<br>su www.tim.it - Clienti Privati -, puoi trasformare il tuo traffico telefonico in fantastici premi con MILLEUNATIM.<br>°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°<br></I></FONT></DIV></BODY></HTML>


Re: Question about dependency

Posted by Jörg Hohwiller <jo...@j-hohwiller.de>.
On Monday 10 May 2004 13:18, Stefanutti, Mario wrote:
> Hi,
Hi there,
seems you have not got any answer, yet.
>
>
>
> I have two sub-projects PA and PB (two simple libraries), and PB depends
> on PA.
>
>
>
> I am using the multiproject goals to build the entire project, but when
> I compile PB, maven tries to download the PA generated jar file (present
> in the other sub-tree), but it cannot find the file from the PB
> subproject.
Jep, thats right, maven loads dependencies from its local repository,
if the artefact in not available or is a SNAPSHOT, it tries to download it
from the repro server(s) - by default from ibilio.
The thing ist that you need to get your jar into your local repository.
This can be done by calling "maven jar:install" in PA before compiling PB.

Regards
  Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org