[POLICY-73] replace openecomp for policy-engine
[policy/engine.git] / project-configs / maven / conf / settings.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP Policy Engine
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 <!-- Special settings file for the maven installation on AT&T central Jenkins -->
36
37
38 <!-- | This is the configuration file for Maven. It can be specified at two 
39         levels: | | 1. User Level. This settings.xml file provides configuration 
40         for a single user, | and is normally provided in ${user.home}/.m2/settings.xml. 
41         | | NOTE: This location can be overridden with the CLI option: | | -s /path/to/user/settings.xml 
42         | | 2. Global Level. This settings.xml file provides configuration for all 
43         Maven | users on a machine (assuming they're all using the same Maven | installation). 
44         It's normally provided in | ${maven.home}/conf/settings.xml. | | NOTE: This 
45         location can be overridden with the CLI option: | | -gs /path/to/global/settings.xml 
46         | | The sections in this sample file are intended to give you a running start 
47         at | getting the most out of your Maven installation. Where appropriate, 
48         the default | values (values used when the setting is not specified) are 
49         provided. | | -->
50 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
51         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
52         xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
53         <!-- localRepository | The path to the local repository maven will use to 
54                 store artifacts. | | Default: ${user.home}/.m2/repository <localRepository>/path/to/local/repo</localRepository> -->
55                 
56         <!-- interactiveMode | This will determine whether maven prompts you when 
57                 it needs input. If set to false, | maven will use a sensible default value, 
58                 perhaps based on some other setting, for | the parameter in question. | | 
59                 Default: true <interactiveMode>true</interactiveMode> -->
60
61         <!-- offline | Determines whether maven should attempt to connect to the 
62                 network when executing a build. | This will have an effect on artifact downloads, 
63                 artifact deployment, and others. | | Default: false <offline>false</offline> -->
64
65         <!-- pluginGroups | This is a list of additional group identifiers that 
66                 will be searched when resolving plugins by their prefix, i.e. | when invoking 
67                 a command line like "mvn prefix:goal". Maven will automatically add the group 
68                 identifiers | "org.apache.maven.plugins" and "org.codehaus.mojo" if these 
69                 are not already contained in the list. | -->
70         <pluginGroups>
71                 <!-- pluginGroup | Specifies a further group identifier to use for plugin 
72                         lookup. <pluginGroup>com.your.plugins</pluginGroup> -->
73         </pluginGroups>
74
75         <!-- proxies | This is a list of proxies which can be used on this machine 
76                 to connect to the network. | Unless otherwise specified (by system property 
77                 or command-line switch), the first proxy | specification in this list marked 
78                 as active will be used. | -->
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
110
111         </mirrors>
112
113         <!-- profiles | This is a list of profiles which can be activated in a variety 
114                 of ways, and which can modify | the build process. Profiles provided in the 
115                 settings.xml are intended to provide local machine- | specific paths and 
116                 repository locations which allow the build to work in the local environment. 
117                 | | For example, if you have an integration testing plugin - like cactus 
118                 - that needs to know where | your Tomcat instance is installed, you can provide 
119                 a variable here such that the variable is | dereferenced during the build 
120                 process to configure the cactus plugin. | | As noted above, profiles can 
121                 be activated in a variety of ways. One way - the activeProfiles | section 
122                 of this document (settings.xml) - will be discussed later. Another way essentially 
123                 | relies on the detection of a system property, either matching a particular 
124                 value for the property, | or merely testing its existence. Profiles can also 
125                 be activated by JDK version prefix, where a | value of '1.4' might activate 
126                 a profile when the build is executed on a JDK version of '1.4.2_07'. | Finally, 
127                 the list of active profiles can be specified directly from the command line. 
128                 | | NOTE: For profiles defined in the settings.xml, you are restricted to 
129                 specifying only artifact | repositories, plugin repositories, and free-form 
130                 properties to be used as configuration | variables for plugins in the POM. 
131                 | | -->
132         <profiles>
133                 <!-- profile | Specifies a set of introductions to the build process, to 
134                         be activated using one or more of the | mechanisms described above. For inheritance 
135                         purposes, and to activate profiles via <activatedProfiles/> | or the command 
136                         line, profiles have to have an ID that is unique. | | An encouraged best 
137                         practice for profile identification is to use a consistent naming convention 
138                         | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 
139                         'user-brett', etc. | This will make it more intuitive to understand what 
140                         the set of introduced profiles is attempting | to accomplish, particularly 
141                         when you only have a list of profile id's for debug. | | This profile example 
142                         uses the JDK version to trigger activation, and provides a JDK-specific repo. 
143                         <profile> <id>jdk-1.4</id> <activation> <jdk>1.4</jdk> </activation> <repositories> 
144                         <repository> <id>jdk14</id> <name>Repository for JDK 1.4 builds</name> <url>http://www.myhost.com/maven/jdk14</url> 
145                         <layout>default</layout> <snapshotPolicy>always</snapshotPolicy> </repository> 
146                         </repositories> </profile> -->
147
148                 <!-- | Here is another profile, activated by the system property 'target-env' 
149                         with a value of 'dev', | which provides a specific path to the Tomcat instance. 
150                         To use this, your plugin configuration | might hypothetically look like: 
151                         | | ... | <plugin> | <groupId>org.myco.myplugins</groupId> | <artifactId>myplugin</artifactId> 
152                         | | <configuration> | <tomcatLocation>${tomcatPath}</tomcatLocation> | </configuration> 
153                         | </plugin> | ... | | NOTE: If you just wanted to inject this configuration 
154                         whenever someone set 'target-env' to | anything, you could just leave off 
155                         the <value/> inside the activation-property. | <profile> <id>env-dev</id> 
156                         <activation> <property> <name>target-env</name> <value>dev</value> </property> 
157                         </activation> <properties> <tomcatPath>/path/to/tomcat/instance</tomcatPath> 
158                         </properties> </profile> -->
159         </profiles>
160
161         <!-- activeProfiles | List of profiles that are active for all builds. | 
162                 <activeProfiles> <activeProfile>alwaysActiveProfile</activeProfile> <activeProfile>anotherAlwaysActiveProfile</activeProfile> 
163                 </activeProfiles> -->
164 </settings>
165