Skip to content

Instantly share code, notes, and snippets.

@metavige
Last active May 28, 2020 13:07
Show Gist options
  • Save metavige/6c0a06e14da84b0dee35ad9c1900a043 to your computer and use it in GitHub Desktop.
Save metavige/6c0a06e14da84b0dee35ad9c1900a043 to your computer and use it in GitHub Desktop.
maven 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">
<profiles>
<profile>
<id>jdk8-default</id>
<activation>
<jdk>1.8</jdk>
</activation>
<properties>
<project.java.version>1.8</project.java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</profile>
<profile>
<id>jdk11-default</id>
<activation>
<jdk>11</jdk>
</activation>
<properties>
<project.java.version>11</project.java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</profile>
<profile>
<id>encoding-default</id>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>encoding-default</activeProfile>
</activeProfiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment