RandomSec/settings.xml
Antonin Delpeuch cf8b1401fa
Attempt to change priority order of JRE resolution on Windows. (#4238)
This only changes the resolution settings for our distribution without embedded JRE.
For packages with the embedded JRE, we keep the same logic as before.

For #4108.
2021-11-24 13:49:52 +01:00

27 lines
1.1 KiB
XML

<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>inject-windows-jre-home</id>
<properties>
<windows.jre.home>C:\jre1.8.0_241</windows.jre.home>
</properties>
</profile>
<profile>
<id>embedded-jre</id>
<properties>
<windows.package.jre.path>server/target/jre</windows.package.jre.path>
<windows.package.jre.directory>${windows.jre.home}</windows.package.jre.directory>
<windows.package.jre.outputDirectory>server/target/jre</windows.package.jre.outputDirectory>
<windows.package.jre.prefix>with-java-</windows.package.jre.prefix>
<windows.package.jre.bundledAsFallback>true</windows.package.jre.bundledAsFallback>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>inject-windows-jre-home</activeProfile>
</activeProfiles>
</settings>