|
| 1 | +<settings> |
| 2 | + |
| 3 | + <mirrors> |
| 4 | + <mirror> |
| 5 | + <id>my-mirror</id> |
| 6 | + <url>http://maven.example.com/mirror</url> |
| 7 | + <mirrorOf>my-server</mirrorOf> |
| 8 | + </mirror> |
| 9 | + </mirrors> |
| 10 | + |
| 11 | + <servers> |
| 12 | + <server> |
| 13 | + <id>my-server</id> |
| 14 | + <username>tester</username> |
| 15 | + <password>secret</password> |
| 16 | + </server> |
| 17 | + </servers> |
| 18 | + |
| 19 | + <proxies> |
| 20 | + <proxy> |
| 21 | + <id>my-proxy</id> |
| 22 | + <active>true</active> |
| 23 | + <protocol>http</protocol> |
| 24 | + <host>proxy.example.com</host> |
| 25 | + <port>8080</port> |
| 26 | + <username>proxyuser</username> |
| 27 | + <password>somepassword</password> |
| 28 | + </proxy> |
| 29 | + </proxies> |
| 30 | + |
| 31 | + <profiles> |
| 32 | + <profile> |
| 33 | + <id>active-by-default</id> |
| 34 | + <activation> |
| 35 | + <activeByDefault>true</activeByDefault> |
| 36 | + </activation> |
| 37 | + <repositories> |
| 38 | + <repository> |
| 39 | + <id>active-by-default</id> |
| 40 | + <url>maven.example.com/activeByDefault</url> |
| 41 | + </repository> |
| 42 | + </repositories> |
| 43 | + </profile> |
| 44 | + <profile> |
| 45 | + <id>active-by-property</id> |
| 46 | + <activation> |
| 47 | + <property> |
| 48 | + <name>foo</name> |
| 49 | + <value>bar</value> |
| 50 | + </property> |
| 51 | + </activation> |
| 52 | + <repositories> |
| 53 | + <repository> |
| 54 | + <id>active-by-property</id> |
| 55 | + <url>maven.example.com/activeByProperty</url> |
| 56 | + </repository> |
| 57 | + </repositories> |
| 58 | + </profile> |
| 59 | + <profile> |
| 60 | + <id>interpolation-profile</id> |
| 61 | + <activation> |
| 62 | + <property> |
| 63 | + <name>interpolate</name> |
| 64 | + <value>true</value> |
| 65 | + </property> |
| 66 | + </activation> |
| 67 | + <properties> |
| 68 | + <repo.base>maven.example.com</repo.base> |
| 69 | + <repo.content>${repo.base}/content</repo.content> |
| 70 | + </properties> |
| 71 | + <repositories> |
| 72 | + <repository> |
| 73 | + <id>interpolate-releases</id> |
| 74 | + <url>${repo.content}/releases</url> |
| 75 | + <releases> |
| 76 | + <enabled>true</enabled> |
| 77 | + <updatePolicy>never</updatePolicy> |
| 78 | + </releases> |
| 79 | + <snapshots> |
| 80 | + <enabled>false</enabled> |
| 81 | + </snapshots> |
| 82 | + </repository> |
| 83 | + <repository> |
| 84 | + <id>interpolate-snapshots</id> |
| 85 | + <url>${repo.content}/snapshots</url> |
| 86 | + <releases> |
| 87 | + <enabled>false</enabled> |
| 88 | + </releases> |
| 89 | + <snapshots> |
| 90 | + <enabled>true</enabled> |
| 91 | + </snapshots> |
| 92 | + </repository> |
| 93 | + </repositories> |
| 94 | + </profile> |
| 95 | + </profiles> |
| 96 | + |
| 97 | +</settings> |
0 commit comments