Why would you want Maven to NOT use the local repository? I believe it does 
this so that every single goal/phase (compile, test, etc) does not need to 
re-fetch artifacts it has already seen from the network. 

-----Original Message-----
From: gorgophol [mailto:[email protected]] 
Sent: Tuesday, June 16, 2009 9:47 AM
To: [email protected]
Subject: Can I prevent maven from searching dependencies in localRepository?


Hi, 

I'm in trouble because of mavens localRepository. I know Maven installs 
everything into localRepository in install-phase, so I use the deploy-phase for 
bringing group-specific artifacts into group-specific repositories.
Artifacts from other groups should only be usable as a dependency in the 
pom.xml, if they are deployed into another repository, lets call it "S" (for 
share). So far so good ... 

In settings.xml I defined several profiles, so that every group gets it's own 
repository and S. My problem is, that maven finds everything in 
localRepository. Is there any possibility to tell maven not to look into 
localRepository, for searching dependencies?

Thanks. 
Benjamin
--
View this message in context: 
http://www.nabble.com/Can-I-prevent-maven-from-searching-dependencies-in-localRepository--tp24054742p24054742.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to