Skip to content

Instantly share code, notes, and snippets.

@swarupdonepudi
Created May 12, 2017 16:38
Show Gist options
  • Save swarupdonepudi/014c0617872a90f4e5d8c1fa4a875f55 to your computer and use it in GitHub Desktop.
Save swarupdonepudi/014c0617872a90f4e5d8c1fa4a875f55 to your computer and use it in GitHub Desktop.
Repository Proxy settings for Maven
<?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">
<servers>
<server>
<id>remote-repos</id>
<username>bhujabaa</username>
<password>{nnJv0EKhcscHIKzDO7BdzLIo6jKCh+xHjf6lYZuxV1A=}</password>
</server>
<server>
<id>libs-releases</id>
<username>bhujabaa</username>
<password>{nnJv0EKhcscHIKzDO7BdzLIo6jKCh+xHjf6lYZuxV1A=}</password>
</server>
<server>
<id>libs-snapshots</id>
<username>bhujabaa</username>
<password>{nnJv0EKhcscHIKzDO7BdzLIo6jKCh+xHjf6lYZuxV1A=}</password>
</server>
<server>
<id>plugins-releases</id>
<username>bhujabaa</username>
<password>{nnJv0EKhcscHIKzDO7BdzLIo6jKCh+xHjf6lYZuxV1A=}</password>
</server>
<server>
<id>plugins-snapshots</id>
<username>bhujabaa</username>
<password>{nnJv0EKhcscHIKzDO7BdzLIo6jKCh+xHjf6lYZuxV1A=}</password>
</server>
</servers>
<mirrors>
<mirror>
<id>remote-repos</id>
<mirrorOf>*</mirrorOf>
<name>remote-repos</name>
<url>http://artifactory.cdk.com/artifactory/repo</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>artifactory</id>
<properties>
<!-- project.build.sourceEncoding - http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bzresults.repository.url>http://jira.bzresults.net/artifactory</bzresults.repository.url>
<bzresults.releases.url>${bzresults.repository.url}/libs-releases-local</bzresults.releases.url>
<bzresults.snapshots.url>${bzresults.repository.url}/libs-snapshots-local</bzresults.snapshots.url>
</properties>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-releases-local</name>
<url>http://artifactory.cdk.com/artifactory/libs-releases-local</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshots-local</name>
<url>http://artifactory.cdk.com/artifactory/libs-snapshots-local</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-releases</name>
<url>http://artifactory.cdk.com/artifactory/plugins-releases</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshots</name>
<url>http://artifactory.cdk.com/artifactory/plugins-snapshots</url>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- Example for MySQL-->
<sonar.jdbc.url>
jdbc:h2:tcp://localhost:9092/sonar
</sonar.jdbc.url>
<sonar.jdbc.username>sonar</sonar.jdbc.username>
<sonar.jdbc.password>sonar</sonar.jdbc.password>
<!-- Optional URL to server. Default value is http://localhost:9000 -->
<sonar.host.url>
http://localhost:9000/
</sonar.host.url>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment