Maven setup

  1. Download Maven from https://maven.apache.org/download.cgi
  2. Follow the instructions from Maven site http://maven.apache.org/install.html to complete the installation.
  3. Open the settings.xml file we have provided. Update the path to your local repository, username and password.
  4. Update or Replace the settings.xml in folder <Your path to Maven>/conf with the one below.


settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

    <localRepository>C:\CHANGE_FOLDER\.m2\repository</localRepository>
    
    <offline>false</offline>

    <servers>
        <server> 
            <id>focus-releases</id> 
            <username>YOUR_NEXUS_USERNAME</username> 
            <password>YOUR_NEXUS_PASSWORD</password> 
        </server> 
        <server> 
            <id>focus-snapshots</id> 
            <username>YOUR_NEXUS_USERNAME</username> 
            <password>YOUR_NEXUS_PASSWORD</password> 
        </server> 
        <server> 
            <id>github</id> 
            <username>YOUR_GITHUB_USER</username> 
            <password>YOUR_GITHUB_PASSWORD</password> 
        </server>  
    </servers>	
   
    <profiles>
        <profile>
            <id>focus</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>focus-releases</id>
                    <name>FOCUS Repository</name>
                    <url>http://nexus.focus.fish/nexus/content/repositories/releases/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>focus-snapshots</id>
                    <name>FOCUS Snapshot Repository</name>
                    <url>http://nexus.focus.fish/nexus/content/repositories/snapshots/</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>                      
    </profiles>
	
</settings>