Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 1 | <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" |
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 4 | <!-- offline |
| 5 | | Determines whether maven should attempt to connect to the network when executing a build. |
| 6 | | This will have an effect on artifact downloads, artifact deployment, and others. |
| 7 | | |
| 8 | | Default: false |
| 9 | <offline>false</offline> |
| 10 | --> |
| 11 | <!-- proxies |
| 12 | | This is a list of proxies which can be used on this machine to connect to the network. |
| 13 | | Unless otherwise specified (by system property or command-line switch), the first proxy |
| 14 | | specification in this list marked as active will be used. |
| 15 | |--> |
| 16 | %PROXIES_START% <proxies> |
| 17 | %PROXIES% %HTTP_PROXY% |
| 18 | %PROXIES% %HTTPS_PROXY% |
| 19 | %PROXIES_END% </proxies> |
| 20 | <!-- mirrors |
| 21 | | This is a list of mirrors to be used in downloading artifacts from remote repositories. |
| 22 | | |
| 23 | | It works like this: a POM may declare a repository to use in resolving certain artifacts. |
| 24 | | However, this repository may have problems with heavy traffic at times, so people have mirrored |
| 25 | | it to several places. |
| 26 | | |
| 27 | | That repository definition will have a unique id, so we can create a mirror reference for that |
| 28 | | repository, to be used as an alternate download site. The mirror site will be the preferred |
| 29 | | server for that repository. |
| 30 | |--> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 31 | <!-- profiles |
| 32 | | This is a list of profiles which can be activated in a variety of ways, and which can modify |
| 33 | | the build process. Profiles provided in the settings.xml are intended to provide local machine- |
| 34 | | specific paths and repository locations which allow the build to work in the local environment. |
| 35 | | |
| 36 | | For example, if you have an integration testing plugin - like cactus - that needs to know where |
| 37 | | your Tomcat instance is installed, you can provide a variable here such that the variable is |
| 38 | | dereferenced during the build process to configure the cactus plugin. |
| 39 | | |
| 40 | | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles |
| 41 | | section of this document (settings.xml) - will be discussed later. Another way essentially |
| 42 | | relies on the detection of a system property, either matching a particular value for the property, |
| 43 | | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a |
| 44 | | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'. |
| 45 | | Finally, the list of active profiles can be specified directly from the command line. |
| 46 | | |
| 47 | | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact |
| 48 | | repositories, plugin repositories, and free-form properties to be used as configuration |
| 49 | | variables for plugins in the POM. |
| 50 | | |
| 51 | |--> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 52 | <profiles> |
| 53 | <profile> |
Victor Morales | 455bece | 2017-07-31 18:40:39 -0500 | [diff] [blame] | 54 | <id>00_maven</id> |
| 55 | <repositories> |
| 56 | <repository> |
| 57 | <id>00_maven</id> |
| 58 | <url>https://maven.restlet.com</url> |
| 59 | </repository> |
| 60 | </repositories> |
| 61 | </profile> |
| 62 | <profile> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 63 | <id>10_nexus</id> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 64 | <repositories> |
| 65 | <repository> |
| 66 | <id>10_nexus</id> |
| 67 | <url>http://repo.maven.apache.org/maven2/</url> |
| 68 | <releases><enabled>true</enabled></releases> |
| 69 | <snapshots><enabled>true</enabled></snapshots> |
| 70 | </repository> |
| 71 | </repositories> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 72 | <pluginRepositories> |
| 73 | <pluginRepository> |
| 74 | <id>10_nexus</id> |
| 75 | <url>http://repo.maven.apache.org/maven2/</url> |
| 76 | <releases><enabled>true</enabled></releases> |
| 77 | <snapshots><enabled>true</enabled></snapshots> |
| 78 | </pluginRepository> |
| 79 | </pluginRepositories> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 80 | </profile> |
| 81 | <profile> |
| 82 | <id>20_openecomp-public</id> |
| 83 | <repositories> |
| 84 | <repository> |
| 85 | <id>20_openecomp-public</id> |
| 86 | <name>20_openecomp-public</name> |
| 87 | <url>https://nexus.onap.org/content/repositories/public/</url> |
| 88 | <releases> |
| 89 | <enabled>true</enabled> |
| 90 | <updatePolicy>daily</updatePolicy> |
| 91 | </releases> |
| 92 | <snapshots> |
| 93 | <enabled>false</enabled> |
| 94 | </snapshots> |
| 95 | </repository> |
| 96 | </repositories> |
| 97 | <pluginRepositories> |
| 98 | <pluginRepository> |
| 99 | <id>20_openecomp-public</id> |
| 100 | <name>20_openecomp-public</name> |
| 101 | <url>https://nexus.onap.org/content/repositories/public/</url> |
| 102 | <releases> |
| 103 | <enabled>true</enabled> |
| 104 | <updatePolicy>daily</updatePolicy> |
| 105 | </releases> |
| 106 | <snapshots> |
| 107 | <enabled>false</enabled> |
| 108 | </snapshots> |
| 109 | </pluginRepository> |
| 110 | </pluginRepositories> |
| 111 | </profile> |
| 112 | <profile> |
| 113 | <id>30_openecomp-staging</id> |
| 114 | <repositories> |
| 115 | <repository> |
| 116 | <id>30_openecomp-staging</id> |
| 117 | <name>30_openecomp-staging</name> |
| 118 | <url>https://nexus.onap.org/content/repositories/staging/</url> |
| 119 | <releases> |
| 120 | <enabled>true</enabled> |
| 121 | <updatePolicy>daily</updatePolicy> |
| 122 | </releases> |
| 123 | <snapshots> |
| 124 | <enabled>false</enabled> |
| 125 | </snapshots> |
| 126 | </repository> |
| 127 | </repositories> |
| 128 | <pluginRepositories> |
| 129 | <pluginRepository> |
| 130 | <id>30_openecomp-staging</id> |
| 131 | <name>30_openecomp-staging</name> |
| 132 | <url>https://nexus.onap.org/content/repositories/staging/</url> |
| 133 | <releases> |
| 134 | <enabled>true</enabled> |
| 135 | <updatePolicy>daily</updatePolicy> |
| 136 | </releases> |
| 137 | <snapshots> |
| 138 | <enabled>false</enabled> |
| 139 | </snapshots> |
| 140 | </pluginRepository> |
| 141 | </pluginRepositories> |
| 142 | </profile> |
| 143 | <profile> |
| 144 | <id>40_openecomp-release</id> |
| 145 | <repositories> |
| 146 | <repository> |
| 147 | <id>40_openecomp-release</id> |
| 148 | <name>40_openecomp-release</name> |
| 149 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 150 | <releases> |
| 151 | <enabled>true</enabled> |
| 152 | <updatePolicy>daily</updatePolicy> |
| 153 | </releases> |
| 154 | <snapshots> |
| 155 | <enabled>false</enabled> |
| 156 | </snapshots> |
| 157 | </repository> |
| 158 | </repositories> |
| 159 | <pluginRepositories> |
| 160 | <pluginRepository> |
| 161 | <id>40_openecomp-release</id> |
| 162 | <name>40_openecomp-release</name> |
| 163 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 164 | <releases> |
| 165 | <enabled>true</enabled> |
| 166 | <updatePolicy>daily</updatePolicy> |
| 167 | </releases> |
| 168 | <snapshots> |
| 169 | <enabled>false</enabled> |
| 170 | </snapshots> |
| 171 | </pluginRepository> |
| 172 | </pluginRepositories> |
| 173 | </profile> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 174 | <profile> |
| 175 | <id>50_openecomp-snapshots</id> |
| 176 | <repositories> |
| 177 | <repository> |
| 178 | <id>50_openecomp-snapshot</id> |
| 179 | <name>50_openecomp-snapshot</name> |
| 180 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 181 | <releases> |
| 182 | <enabled>false</enabled> |
| 183 | </releases> |
| 184 | <snapshots> |
| 185 | <enabled>true</enabled> |
| 186 | </snapshots> |
| 187 | </repository> |
| 188 | </repositories> |
| 189 | <pluginRepositories> |
| 190 | <pluginRepository> |
| 191 | <id>50_openecomp-snapshot</id> |
| 192 | <name>50_openecomp-snapshot</name> |
| 193 | <url>https://nexus.onap.org/content/repositories/snapshots/</url> |
| 194 | <releases> |
| 195 | <enabled>false</enabled> |
| 196 | </releases> |
| 197 | <snapshots> |
| 198 | <enabled>true</enabled> |
| 199 | </snapshots> |
| 200 | </pluginRepository> |
| 201 | </pluginRepositories> |
| 202 | </profile> |
| 203 | <profile> |
| 204 | <id>60_opendaylight-release</id> |
| 205 | <repositories> |
| 206 | <repository> |
| 207 | <id>60_opendaylight-mirror</id> |
| 208 | <name>60_opendaylight-mirror</name> |
| 209 | <url>https://nexus.opendaylight.org/content/repositories/public/</url> |
| 210 | <releases> |
| 211 | <enabled>true</enabled> |
| 212 | <updatePolicy>daily</updatePolicy> |
| 213 | </releases> |
| 214 | <snapshots> |
| 215 | <enabled>false</enabled> |
| 216 | </snapshots> |
| 217 | </repository> |
| 218 | </repositories> |
| 219 | <pluginRepositories> |
| 220 | <pluginRepository> |
| 221 | <id>60_opendaylight-mirror</id> |
| 222 | <name>60_opendaylight-mirror</name> |
| 223 | <url>https://nexus.opendaylight.org/content/repositories/public/</url> |
| 224 | <releases> |
| 225 | <enabled>true</enabled> |
| 226 | <updatePolicy>daily</updatePolicy> |
| 227 | </releases> |
| 228 | <snapshots> |
| 229 | <enabled>false</enabled> |
| 230 | </snapshots> |
| 231 | </pluginRepository> |
| 232 | </pluginRepositories> |
| 233 | </profile> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 234 | <profile> |
| 235 | <id>70_opendaylight-snapshots</id> |
| 236 | <repositories> |
| 237 | <repository> |
| 238 | <id>70_opendaylight-snapshot</id> |
| 239 | <name>70_opendaylight-snapshot</name> |
| 240 | <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url> |
| 241 | <releases> |
| 242 | <enabled>false</enabled> |
| 243 | </releases> |
| 244 | <snapshots> |
| 245 | <enabled>true</enabled> |
| 246 | </snapshots> |
| 247 | </repository> |
| 248 | </repositories> |
| 249 | <pluginRepositories> |
| 250 | <pluginRepository> |
| 251 | <id>70_opendaylight-snapshot</id> |
| 252 | <name>70_opendaylight-snapshot</name> |
| 253 | <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url> |
| 254 | <releases> |
| 255 | <enabled>false</enabled> |
| 256 | </releases> |
| 257 | <snapshots> |
| 258 | <enabled>true</enabled> |
| 259 | </snapshots> |
| 260 | </pluginRepository> |
| 261 | </pluginRepositories> |
| 262 | </profile> |
| 263 | </profiles> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 264 | <activeProfiles> |
Victor Morales | 455bece | 2017-07-31 18:40:39 -0500 | [diff] [blame] | 265 | <activeProfile>00_maven</activeProfile> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 266 | <activeProfile>10_nexus</activeProfile> |
| 267 | <activeProfile>20_openecomp-public</activeProfile> |
| 268 | <activeProfile>30_openecomp-staging</activeProfile> |
| 269 | <activeProfile>40_openecomp-release</activeProfile> |
| 270 | <activeProfile>50_openecomp-snapshots</activeProfile> |
| 271 | <activeProfile>60_opendaylight-release</activeProfile> |
| 272 | <activeProfile>70_opendaylight-snapshots</activeProfile> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 273 | </activeProfiles> |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 274 | </settings> |