Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »


Initial configuration

This configuration come without doing anything.

Extended usage

Without repository manager 

Take a look on the "extended project" pom.

With repository manager


The "extended project" pom don't change, we just add mirrors section in the settings.xml (M2_HOME/conf/settings.xml or ~/.m2/settings.xml).
Take a look on the Mirrors definitions in settings.xml
 

Complex usage

Counterexamples

Single repo mirroring multiple repositories

(warning) THIS IS A COUNTEREXAMPLE

Mirror repository defined in place of original repository.

(warning) THIS IS A COUNTEREXAMPLE

Annexes

pom.xml

Simple project 

Extended project

 (info) Note that some repository declarations are useless:

  • Jetty is now available on central repository so you can remove
  • Project only need snapshot version of cargo plugin so you can remove
  •  The project don't have any dependencies on snapshot version of codehaus artefacts so you can remove

 Advanced project


Settings.xml including repository mirrors definitions


  • No labels