Hello Patrik,

I stand corrected. I might have had some configuration errors of my maven-proxy 
*in addition* to  what I had in settings.xml and pom.xml.

The maven guide states it clearly 
(http://maven.apache.org/guides/introduction/introduction-to-repositories.html):


> You can set this in your settings.xml  file to globally use a certain mirror, 
> however note that it is common for a project to customise the repository in 
> their pom.xml and that your setting will take precedence. If you find that 
> dependencies are not being found, check you have not overridden the remote 
> repository.

So, I probably did not configure maven-proxy to also search the repo which was 
given in pom.xml. Then, maven did not find the dependency in the maven-proxy 
repo 
which was configured in settings.xml and tried to get it from the one given in 
pom.xml.

Thanks for the clarification and sorry for the confusion


Kambiz

PS: I will update CSC-173 with a reference to this mail as soon as it appears on
Nabble.



----- Original Message -----
From: "Patrik Nordwall" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Montag, 7. Januar 2008 20.55 Uhr (GMT+0100) Europe/Berlin
Subject: Re: [Fornax-developer] Re positories in pom


I have tried a some combinations of repository definitions in pom.xml vs.
settings.xml and found that settings.xml takes precedence over pom.xml, i.e.
the comment at CSC-173 is no issue because we can use default configuration
in pom.xml pointing to fornax repository and those using a company
repository can define other urls in settings.xml (or change in pom.xml, it
is only generated once).

Correct me if I'm wrong.

/Patrik 


Patrik Nordwall wrote:
> 
> We have got an interesting comment in 
> http://www.fornax-platform.org/tracker/browse/CSC-173 CSC-173  that it is
> not a good idea to have the repository definition in the pom files.
> 
> Another opinion:
> http://www.nabble.com/-fornax-repository--missing-equinox-dependency-to14252094s17564.html#a14278216
> 
> Does the definition in the pom takes precedence over definition in
> settings.xml?
> 
> I started this thread to gather more opinions. What do you think?
> 

-- 
View this message in context: 
http://www.nabble.com/Repositories-in-pom-tp14660711s17564p14674441.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to