Nexus Repository

CI proxy

<?xml version="1.0" encoding="UTF-8"?>
<!--Defined as Managed File and ServerId and corresponding credentials are set in jenkins-->
<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>/var/lib/jenkins/.m2/repository</localRepository>         

  <mirrors>
    <mirror>
      <!--This sends everything else to /public -->
      <id>nexus</id>
      <mirrorOf>*,!thirdparty</mirrorOf>
      <url>https://nexus.focus.fish/nexus/repository/public/</url>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <id>nexus</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>central</id>
          <url>http://central</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://central</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
    <profile>
      <id>focus</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>thirdparty</id>
          <name>FOCUS 3rd party</name>
          <url>https://nexus.focus.fish/nexus/repository/thirdparty/</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>

</settings>



Closed dependencies

To be able to build anything that has Oracle dependencies, the following needs to be added to your maven settings

<servers>
  <server>
    <id>thirdparty</id>
    <username>USERNAME</username>
    <password>PASSWORD</password>
  </server>
</servers>

<profiles>
  <profile>
    <id>focus</id>
    <activation>
      <activeByDefault>true</activeByDefault>
    </activation>
    <repositories>
      <repository>
        <id>thirdparty</id>
        <name>FOCUS 3rd party</name>
        <url>http://nexus.focus.fish/nexus/content/repositories/thirdparty/</url>
      </repository>
    </repositories>
  </profile>
</profiles>

Replace USERNAME and PASSWORD with your Nexus credentials