Skip to content

Local Maven settings

Gordon Hutchison edited this page May 16, 2018 · 6 revisions

Here is a settings.xml from Felix Wong:

<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <servers>
    <server>
      <username>[user]</username>
      <password>[password]</password>
      <id>snapshots</id>
    </server>
  </servers>
  <profiles>
    <profile>
      <repositories>
        <repository>
          <id>snapshots</id>
          <url>https://na.artifactory.swg-devops.com/artifactory/wasliberty-open-liberty</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </repository>
      </repositories>
      <id>artifactory</id>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>artifactory</activeProfile>
  </activeProfiles>
</settings>
…​and here is a file from Chris Webster…​.
<servers>

<server>

<id>central</id>
<username>user</username>
<password>password</password>

</server>

<server>

<id>snapshots</id>
<username>user</username>
<password>password</password>

</server>
 

</servers>
<profiles>

<profile>

<repositories>

<repository>

<id>central</id>
<snapshots>
<enabled>false</enabled>
</snapshots>
<name>libs-release</name>
<url> http://localhost:8081/artifactory/libs-release </url>

</repository>
<repository>

<id>snapshots</id>
<snapshots />
<name>libs-snapshot</name>
<url> http://localhost:8081/artifactory/libs-snapshot </url>

</repository>

</repositories>

</profile>

</profiles>