|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ Copyright The WildFly Authors |
| 4 | + ~ SPDX-License-Identifier: Apache-2.0 |
| 5 | + --> |
| 6 | + |
| 7 | +<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" |
| 8 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> |
| 10 | + |
| 11 | + <profiles> |
| 12 | + <!-- Profile with property activation - should NOT activate --> |
| 13 | + <profile> |
| 14 | + <id>property-activated</id> |
| 15 | + <activation> |
| 16 | + <property> |
| 17 | + <name>quickstart</name> |
| 18 | + <value>true</value> |
| 19 | + </property> |
| 20 | + </activation> |
| 21 | + <repositories> |
| 22 | + <repository> |
| 23 | + <id>property-repo</id> |
| 24 | + <url>https://example.org/property-repo/</url> |
| 25 | + </repository> |
| 26 | + </repositories> |
| 27 | + </profile> |
| 28 | + |
| 29 | + <!-- Profile with jdk activation - should NOT activate --> |
| 30 | + <profile> |
| 31 | + <id>jdk-activated</id> |
| 32 | + <activation> |
| 33 | + <jdk>11</jdk> |
| 34 | + </activation> |
| 35 | + <repositories> |
| 36 | + <repository> |
| 37 | + <id>jdk-repo</id> |
| 38 | + <url>https://example.org/jdk-repo/</url> |
| 39 | + </repository> |
| 40 | + </repositories> |
| 41 | + </profile> |
| 42 | + |
| 43 | + <!-- Profile with os activation - should NOT activate --> |
| 44 | + <profile> |
| 45 | + <id>os-activated</id> |
| 46 | + <activation> |
| 47 | + <os> |
| 48 | + <name>Linux</name> |
| 49 | + <family>unix</family> |
| 50 | + <arch>amd64</arch> |
| 51 | + <version>5.0</version> |
| 52 | + </os> |
| 53 | + </activation> |
| 54 | + <repositories> |
| 55 | + <repository> |
| 56 | + <id>os-repo</id> |
| 57 | + <url>https://example.org/os-repo/</url> |
| 58 | + </repository> |
| 59 | + </repositories> |
| 60 | + </profile> |
| 61 | + |
| 62 | + <!-- Profile with file activation - should NOT activate --> |
| 63 | + <profile> |
| 64 | + <id>file-activated</id> |
| 65 | + <activation> |
| 66 | + <file> |
| 67 | + <exists>${basedir}/pom.xml</exists> |
| 68 | + </file> |
| 69 | + </activation> |
| 70 | + <repositories> |
| 71 | + <repository> |
| 72 | + <id>file-repo</id> |
| 73 | + <url>https://example.org/file-repo/</url> |
| 74 | + </repository> |
| 75 | + </repositories> |
| 76 | + </profile> |
| 77 | + |
| 78 | + <!-- Profile with activeByDefault=true - SHOULD activate --> |
| 79 | + <profile> |
| 80 | + <id>active-by-default</id> |
| 81 | + <activation> |
| 82 | + <activeByDefault>true</activeByDefault> |
| 83 | + </activation> |
| 84 | + <repositories> |
| 85 | + <repository> |
| 86 | + <id>active-repo</id> |
| 87 | + <url>https://example.org/active-repo/</url> |
| 88 | + </repository> |
| 89 | + </repositories> |
| 90 | + </profile> |
| 91 | + |
| 92 | + <!-- Profile with activeByDefault=false - should NOT activate --> |
| 93 | + <profile> |
| 94 | + <id>not-active-by-default</id> |
| 95 | + <activation> |
| 96 | + <activeByDefault>false</activeByDefault> |
| 97 | + </activation> |
| 98 | + <repositories> |
| 99 | + <repository> |
| 100 | + <id>not-active-repo</id> |
| 101 | + <url>https://example.org/not-active-repo/</url> |
| 102 | + </repository> |
| 103 | + </repositories> |
| 104 | + </profile> |
| 105 | + |
| 106 | + <!-- Profile with mixed activation (property + activeByDefault) - SHOULD activate --> |
| 107 | + <profile> |
| 108 | + <id>mixed-activation</id> |
| 109 | + <activation> |
| 110 | + <activeByDefault>true</activeByDefault> |
| 111 | + <property> |
| 112 | + <name>env</name> |
| 113 | + <value>dev</value> |
| 114 | + </property> |
| 115 | + </activation> |
| 116 | + <repositories> |
| 117 | + <repository> |
| 118 | + <id>mixed-repo</id> |
| 119 | + <url>https://example.org/mixed-repo/</url> |
| 120 | + </repository> |
| 121 | + </repositories> |
| 122 | + </profile> |
| 123 | + |
| 124 | + <!-- Profile with property activation (name only) - should NOT activate --> |
| 125 | + <profile> |
| 126 | + <id>property-name-only</id> |
| 127 | + <activation> |
| 128 | + <property> |
| 129 | + <name>someProperty</name> |
| 130 | + </property> |
| 131 | + </activation> |
| 132 | + <repositories> |
| 133 | + <repository> |
| 134 | + <id>property-name-repo</id> |
| 135 | + <url>https://example.org/property-name-repo/</url> |
| 136 | + </repository> |
| 137 | + </repositories> |
| 138 | + </profile> |
| 139 | + |
| 140 | + <!-- Profile with file missing activation - should NOT activate --> |
| 141 | + <profile> |
| 142 | + <id>file-missing-activated</id> |
| 143 | + <activation> |
| 144 | + <file> |
| 145 | + <missing>${basedir}/non-existent-file.txt</missing> |
| 146 | + </file> |
| 147 | + </activation> |
| 148 | + <repositories> |
| 149 | + <repository> |
| 150 | + <id>file-missing-repo</id> |
| 151 | + <url>https://example.org/file-missing-repo/</url> |
| 152 | + </repository> |
| 153 | + </repositories> |
| 154 | + </profile> |
| 155 | + </profiles> |
| 156 | +</settings> |
0 commit comments