Added by jgarnett, last edited by jgarnett on Nov 20, 2006  (view change)

Labels

 
(None)

On your machine you will find a directory in called 'm2'. This is where maven stores all downloaded jars and installed projects.

  • Linux: ~/.m2
  • Windows: C:\Documents and Settings\USER\.m2

settings.xml

You can provide an optional settings.xml file in this directory that is used to describe configuration and resources avaialble on your machine.

Examples of use:

  • set heap size (so you can have a faster build?)
  • turn on / off online tests
  • select testing profiles (so you can test against a local database, or geoserver install)

Example (for using a local shared maven repository):

settings.xml
<settings>
  <mirrors>
    <mirror>
      <id>mirror.repo</id>
      <name>mirror of Ibiblio/</name>
      <url>file://R:/m2/repository</url>
      <mirrorOf>ibiblio</mirrorOf>
    </mirror>
  </mirrors>
</settings>

Much of the advice on testing will depend on creating one of these files and updating it.

Repository

You should see that any third party jars, such as JTS, will have been installed in this repository. You should also see that all successful module builds (e.g. main, referencing...) have had their jars installed in a directory called org/geotools.