Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | ECOMP Policy Engine - Drools PDP |
| 5 | ================================================================================ |
| 6 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 7 | ================================================================================ |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
| 22 | |
| 23 | <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| 24 | license agreements. See the NOTICE file distributed with this work for additional |
| 25 | information regarding copyright ownership. The ASF licenses this file to |
| 26 | you under the Apache License, Version 2.0 (the "License"); you may not use |
| 27 | this file except in compliance with the License. You may obtain a copy of |
| 28 | the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 29 | by applicable law or agreed to in writing, software distributed under the |
| 30 | License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 31 | OF ANY KIND, either express or implied. See the License for the specific |
| 32 | language governing permissions and limitations under the License. --> |
| 33 | |
| 34 | |
| 35 | |
| 36 | <!-- | This is the configuration file for Maven. It can be specified at two |
| 37 | levels: | | 1. User Level. This settings.xml file provides configuration |
| 38 | for a single user, | and is normally provided in ${user.home}/.m2/settings.xml. |
| 39 | | | NOTE: This location can be overridden with the CLI option: | | -s /path/to/user/settings.xml |
| 40 | | | 2. Global Level. This settings.xml file provides configuration for all |
| 41 | Maven | users on a machine (assuming they're all using the same Maven | installation). |
| 42 | It's normally provided in | ${maven.home}/conf/settings.xml. | | NOTE: This |
| 43 | location can be overridden with the CLI option: | | -gs /path/to/global/settings.xml |
| 44 | | | The sections in this sample file are intended to give you a running start |
| 45 | at | getting the most out of your Maven installation. Where appropriate, |
| 46 | the default | values (values used when the setting is not specified) are |
| 47 | provided. | | --> |
| 48 | <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" |
| 49 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 50 | xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> |
| 51 | <!-- localRepository | The path to the local repository maven will use to |
| 52 | store artifacts. | | Default: ${user.home}/.m2/repository <localRepository>/path/to/local/repo</localRepository> --> |
| 53 | <localRepository>${user.home}/.m2/repository</localRepository> |
| 54 | <!-- interactiveMode | This will determine whether maven prompts you when |
| 55 | it needs input. If set to false, | maven will use a sensible default value, |
| 56 | perhaps based on some other setting, for | the parameter in question. | | |
| 57 | Default: true <interactiveMode>true</interactiveMode> --> |
| 58 | |
| 59 | <!-- offline | Determines whether maven should attempt to connect to the |
| 60 | network when executing a build. | This will have an effect on artifact downloads, |
| 61 | artifact deployment, and others. | | Default: false <offline>false</offline> --> |
| 62 | |
| 63 | <!-- pluginGroups | This is a list of additional group identifiers that |
| 64 | will be searched when resolving plugins by their prefix, i.e. | when invoking |
| 65 | a command line like "mvn prefix:goal". Maven will automatically add the group |
| 66 | identifiers | "org.apache.maven.plugins" and "org.codehaus.mojo" if these |
| 67 | are not already contained in the list. | --> |
| 68 | <pluginGroups> |
| 69 | <!-- pluginGroup | Specifies a further group identifier to use for plugin |
| 70 | lookup. <pluginGroup>com.your.plugins</pluginGroup> --> |
| 71 | </pluginGroups> |
| 72 | |
| 73 | <!-- proxies | This is a list of proxies which can be used on this machine |
| 74 | to connect to the network. | Unless otherwise specified (by system property |
| 75 | or command-line switch), the first proxy | specification in this list marked |
| 76 | as active will be used. | --> |
| 77 | <proxies> |
| 78 | </proxies> |
| 79 | |
| 80 | <!-- servers | This is a list of authentication profiles, keyed by the server-id |
| 81 | used within the system. | Authentication profiles can be used whenever maven |
| 82 | must make a connection to a remote server. | --> |
| 83 | <servers> |
| 84 | <!-- server | Specifies the authentication information to use when connecting |
| 85 | to a particular server, identified by | a unique name within the system (referred |
| 86 | to by the 'id' attribute below). | | NOTE: You should either specify username/password |
| 87 | OR privateKey/passphrase, since these pairings are | used together. | <server> |
| 88 | <id>deploymentRepo</id> <username>repouser</username> <password>repopwd</password> |
| 89 | </server> --> |
| 90 | |
| 91 | <!-- Another sample, using keys to authenticate. <server> <id>siteServer</id> |
| 92 | <privateKey>/path/to/private/key</privateKey> <passphrase>optional; leave |
| 93 | empty if not used.</passphrase> </server> --> |
| 94 | </servers> |
| 95 | |
| 96 | <!-- mirrors | This is a list of mirrors to be used in downloading artifacts |
| 97 | from remote repositories. | | It works like this: a POM may declare a repository |
| 98 | to use in resolving certain artifacts. | However, this repository may have |
| 99 | problems with heavy traffic at times, so people have mirrored | it to several |
| 100 | places. | | That repository definition will have a unique id, so we can create |
| 101 | a mirror reference for that | repository, to be used as an alternate download |
| 102 | site. The mirror site will be the preferred | server for that repository. |
| 103 | | --> |
| 104 | <mirrors> |
| 105 | <!-- mirror | Specifies a repository mirror site to use instead of a given |
| 106 | repository. The repository that | this mirror serves has an ID that matches |
| 107 | the mirrorOf element of this mirror. IDs are used | for inheritance and direct |
| 108 | lookup purposes, and must be unique across the set of mirrors. | --> |
| 109 | </mirrors> |
| 110 | |
| 111 | <!-- profiles | This is a list of profiles which can be activated in a variety |
| 112 | of ways, and which can modify | the build process. Profiles provided in the |
| 113 | settings.xml are intended to provide local machine- | specific paths and |
| 114 | repository locations which allow the build to work in the local environment. |
| 115 | | | For example, if you have an integration testing plugin - like cactus |
| 116 | - that needs to know where | your Tomcat instance is installed, you can provide |
| 117 | a variable here such that the variable is | dereferenced during the build |
| 118 | process to configure the cactus plugin. | | As noted above, profiles can |
| 119 | be activated in a variety of ways. One way - the activeProfiles | section |
| 120 | of this document (settings.xml) - will be discussed later. Another way essentially |
| 121 | | relies on the detection of a system property, either matching a particular |
| 122 | value for the property, | or merely testing its existence. Profiles can also |
| 123 | be activated by JDK version prefix, where a | value of '1.4' might activate |
| 124 | a profile when the build is executed on a JDK version of '1.4.2_07'. | Finally, |
| 125 | the list of active profiles can be specified directly from the command line. |
| 126 | | | NOTE: For profiles defined in the settings.xml, you are restricted to |
| 127 | specifying only artifact | repositories, plugin repositories, and free-form |
| 128 | properties to be used as configuration | variables for plugins in the POM. |
| 129 | | | --> |
| 130 | <profiles> |
| 131 | <!-- profile | Specifies a set of introductions to the build process, to |
| 132 | be activated using one or more of the | mechanisms described above. For inheritance |
| 133 | purposes, and to activate profiles via <activatedProfiles/> | or the command |
| 134 | line, profiles have to have an ID that is unique. | | An encouraged best |
| 135 | practice for profile identification is to use a consistent naming convention |
| 136 | | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', |
| 137 | 'user-brett', etc. | This will make it more intuitive to understand what |
| 138 | the set of introduced profiles is attempting | to accomplish, particularly |
| 139 | when you only have a list of profile id's for debug. | | This profile example |
| 140 | uses the JDK version to trigger activation, and provides a JDK-specific repo. |
| 141 | <profile> <id>jdk-1.4</id> <activation> <jdk>1.4</jdk> </activation> <repositories> |
| 142 | <repository> <id>jdk14</id> <name>Repository for JDK 1.4 builds</name> <url>http://www.myhost.com/maven/jdk14</url> |
| 143 | <layout>default</layout> <snapshotPolicy>always</snapshotPolicy> </repository> |
| 144 | </repositories> </profile> --> |
| 145 | |
| 146 | <!-- | Here is another profile, activated by the system property 'target-env' |
| 147 | with a value of 'dev', | which provides a specific path to the Tomcat instance. |
| 148 | To use this, your plugin configuration | might hypothetically look like: |
| 149 | | | ... | <plugin> | <groupId>org.myco.myplugins</groupId> | <artifactId>myplugin</artifactId> |
| 150 | | | <configuration> | <tomcatLocation>${tomcatPath}</tomcatLocation> | </configuration> |
| 151 | | </plugin> | ... | | NOTE: If you just wanted to inject this configuration |
| 152 | whenever someone set 'target-env' to | anything, you could just leave off |
| 153 | the <value/> inside the activation-property. | <profile> <id>env-dev</id> |
| 154 | <activation> <property> <name>target-env</name> <value>dev</value> </property> |
| 155 | </activation> <properties> <tomcatPath>/path/to/tomcat/instance</tomcatPath> |
| 156 | </properties> </profile> --> |
| 157 | </profiles> |
| 158 | |
| 159 | <!-- activeProfiles | List of profiles that are active for all builds. | |
| 160 | <activeProfiles> <activeProfile>alwaysActiveProfile</activeProfile> <activeProfile>anotherAlwaysActiveProfile</activeProfile> |
| 161 | </activeProfiles> --> |
| 162 | </settings> |