Skip to content

Instantly share code, notes, and snippets.

@Sanne
Last active September 8, 2022 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sanne/fad1a91f9c296bb29de73f8217c7661c to your computer and use it in GitHub Desktop.
Save Sanne/fad1a91f9c296bb29de73f8217c7661c to your computer and use it in GitHub Desktop.
Optimised Maven settings.xml for within my home
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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">
<proxies>
</proxies>
<mirrors>
<mirror>
<id>syn720-proxy-central</id>
<name>My custom mirror for Central</name>
<url>http://192.168.1.201:5002/repository/maven-central/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>syn720-proxy-jboss</id>
<name>My custom mirror for JBoss</name>
<url>http://192.168.1.201:5002/repository/jboss-public-proxy/</url>
<mirrorOf>jboss-public-repository</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>proxy-enabled</id>
<properties>
<insecure.repositories>WARN</insecure.repositories>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>proxy-enabled</activeProfile>
</activeProfiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment