Re: Maven Repositories settings best practice

2014-12-11 Thread Dan Tran
I found this
http://blog.sonatype.com/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/#.VIpCmTHF_AQ

sorry about the noise

-D

On Thu, Dec 11, 2014 at 3:42 PM, Dan Tran dant...@gmail.com wrote:


 I do believe using maven mirror under setting.xml is best practice rather
 define them in pom.xml.

 However I am not able to locate some blogs I used to read before.

 Do you have any reference to this best practice?

 Very much appreciated

 -D



Re: Maven Repositories settings best practice

2014-12-11 Thread Barrie Treloar
On 12 December 2014 at 11:53, Dan Tran dant...@gmail.com wrote:

 I found this

 http://blog.sonatype.com/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/#.VIpCmTHF_AQ

 sorry about the noise


If you can't find it in the official docs, then feel free to hack up some
enhancements.


Re: Maven Repositories settings best practice

2014-12-11 Thread Dan Tran
Where is in the official doc, this should land?

Thanks

-D

On Thu, Dec 11, 2014 at 6:52 PM, Barrie Treloar baerr...@gmail.com wrote:

 On 12 December 2014 at 11:53, Dan Tran dant...@gmail.com wrote:

  I found this
 
 
 http://blog.sonatype.com/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/#.VIpCmTHF_AQ
 
  sorry about the noise


 If you can't find it in the official docs, then feel free to hack up some
 enhancements.



Re: Maven Repositories settings best practice

2014-12-11 Thread Barrie Treloar
On 12 December 2014 at 15:10, Dan Tran dant...@gmail.com wrote:

 Where is in the official doc, this should land?


That's an awfully good question.
There is another thread about re-organising the documentation.

The User Centre (http://maven.apache.org/users/index.html) docs are pretty
thin, but I would expect this advice to land in there.

Or perhaps the Run Maven  Configuring Maven (
http://maven.apache.org/guides/mini/guide-configuring-maven.html) has a
section on Mirrors that links to
http://maven.apache.org/guides/mini/guide-mirror-settings.html.
The first sentence says Repositories are declared inside a project, which
means that if you have your own custom repositories, those sharing your
project easily get the right settings out of the box. which runs against
the current advice.

Unfortunately those mini-guides dont have a hierarchy available on the left
hand navigation page and hacking the URL to drop of the last path just
gives a blank page.