org.ops4j.pax.url.mvn.cfg 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. ################################################################################
  2. #
  3. # Licensed to the Apache Software Foundation (ASF) under one or more
  4. # contributor license agreements. See the NOTICE file distributed with
  5. # this work for additional information regarding copyright ownership.
  6. # The ASF licenses this file to You under the Apache License, Version 2.0
  7. # (the "License"); you may not use this file except in compliance with
  8. # the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. #
  18. ################################################################################
  19. #
  20. # see: https://ops4j1.jira.com/wiki/display/paxurl/Aether+Configuration
  21. #
  22. # If set to true, the following property will not allow any certificate to be used
  23. # when accessing Maven repositories through SSL
  24. #
  25. org.ops4j.pax.url.mvn.certificateCheck=true
  26. #
  27. # Path to the local Maven settings file.
  28. # The repositories defined in this file will be automatically added to the list
  29. # of default repositories if the 'org.ops4j.pax.url.mvn.repositories' property
  30. # below is not set.
  31. # The following locations are checked for the existence of the settings.xml file
  32. # * 1. looks for the specified url
  33. # * 2. if not found looks for ${user.home}/.m2/settings.xml
  34. # * 3. if not found looks for ${maven.home}/conf/settings.xml
  35. # * 4. if not found looks for ${M2_HOME}/conf/settings.xml
  36. #
  37. # Properties prefixed with "org.ops4j.pax.url.mvn." have
  38. # higher priority except <proxies> element. HTTP proxies should be configured in
  39. # settings file
  40. #org.ops4j.pax.url.mvn.settings=
  41. #
  42. # Path to the local Maven repository which is used to avoid downloading
  43. # artifacts when they already exist locally.
  44. # The value of this property will be extracted from the settings.xml file
  45. # above, or defaulted to:
  46. # System.getProperty( "user.home" ) + "/.m2/repository"
  47. # leaving this option commented makes the system dependent on external
  48. # configuration, which is not always desired
  49. # "localRepository" is the target location for artifacts downloaded from
  50. # "remote repositories"
  51. #org.ops4j.pax.url.mvn.localRepository=
  52. #
  53. # Default this to false. It's just weird to use undocumented repos
  54. # "false" means that http://repo1.maven.org/maven2@id=central won't be
  55. # implicitly used as remote repository
  56. #
  57. org.ops4j.pax.url.mvn.useFallbackRepositories=false
  58. #
  59. # Comma separated list of repositories scanned when resolving an artifact.
  60. # list of repositories searched in the first place, should contain
  61. # ${runtime.home}/${karaf.default.repository}.
  62. # if "org.ops4j.pax.url.mvn.localRepository" is defined and it's not
  63. # ~/.m2/repository, it's recommended (at least for dev purposes) to add
  64. # ~/.m2/repository to defaultRepositories
  65. # each of these repositories is checked by aether as "local repository". if
  66. # artifact isn't found, "repositories" are searched next
  67. #
  68. # Those repositories will be checked before iterating through the
  69. # below list of repositories and even before the local repository
  70. # A repository url can be appended with zero or more of the following flags:
  71. # @snapshots : the repository contains snaphots
  72. # @noreleases : the repository does not contain any released artifacts
  73. #
  74. # The following property value will add the system folder as a repo.
  75. #
  76. org.ops4j.pax.url.mvn.defaultRepositories=\
  77. file:${karaf.home}/${karaf.default.repository}@id=system.repository@snapshots, \
  78. file:${karaf.data}/kar@id=kar.repository@multi@snapshots, \
  79. file:${karaf.base}/${karaf.default.repository}@id=child.system.repository@snapshots
  80. #
  81. # if "defaultLocalRepoAsRemote" is set do *any* value, localRepository will be
  82. # added to the list of remote repositories being searched for artifacts
  83. #
  84. #org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote = true
  85. #
  86. # Comma separated list of repositories scanned when resolving an artifact.
  87. # list of repositories searched after resolution fails for "defaultRepositories"
  88. # These are true remote repositories accessed using maven/aether/wagon
  89. # mechanisms. If any repository contains required artifact, it is then written
  90. # to "localRepository"
  91. #
  92. # if this list is _prepended_ with '+' sign, all repositories from active
  93. # profiles defined in effective settings.xml file will be _appended_ to this
  94. # list
  95. # The default list includes the following repositories:
  96. # http://repo1.maven.org/maven2@id=central
  97. # http://repository.springsource.com/maven/bundles/release@id=spring.ebr
  98. # http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external
  99. # http://zodiac.springsource.com/maven/bundles/release@id=gemini
  100. # http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases
  101. # https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases
  102. # https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases
  103. # A repository url can be appended with zero or more of the following flags:
  104. # @snapshots : the repository contains snapshots
  105. # @noreleases : the repository does not contain any released artifacts
  106. # @id=repository.id : the id for the repository, just like in the
  107. # settings.xml this is optional but recommended
  108. #
  109. org.ops4j.pax.url.mvn.repositories= \
  110. http://repo1.maven.org/maven2@id=central, \
  111. http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, \
  112. http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external, \
  113. http://zodiac.springsource.com/maven/bundles/release@id=gemini, \
  114. http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases, \
  115. https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases, \
  116. https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases, \
  117. http://repository.springsource.com/maven/bundles/external@id=spring-ebr-repository@snapshots@noreleases
  118. #
  119. # Global policies override repository-specific settings (@checksum=..., @update=..., @releasesUpdate=..., ...)
  120. #
  121. #org.ops4j.pax.url.mvn.globalUpdatePolicy = daily
  122. #org.ops4j.pax.url.mvn.globalChecksumPolicy = warn
  123. #
  124. # socket and connection configuration (pax-url-aether 2.5.0)
  125. #
  126. # default value for connection and read timeouts, when socket.readTimeout and socket.connectionTimeout
  127. # are not specified
  128. org.ops4j.pax.url.mvn.timeout = 5000
  129. # timeout in ms when establishing http connection during artifact resolution
  130. org.ops4j.pax.url.mvn.socket.connectionTimeout = 5000
  131. # timeout in ms when reading data after connecting to remote repository
  132. org.ops4j.pax.url.mvn.socket.readTimeout = 30000
  133. # SO_KEEPALIVE option for sockets, defaults to false
  134. org.ops4j.pax.url.mvn.socket.keepAlive = false
  135. # SO_LINGER option for sockets, defaults to -1
  136. org.ops4j.pax.url.mvn.socket.linger = -1
  137. # SO_REUSEADDR option for sockets, defaults to false
  138. org.ops4j.pax.url.mvn.socket.reuseAddress = false
  139. # TCP_NODELAY option for sockets, defaults to true
  140. org.ops4j.pax.url.mvn.socket.tcpNoDelay = true
  141. # Configure buffer size for HTTP connections (output and input buffers), defaults to 8192 bytes
  142. org.ops4j.pax.url.mvn.connection.bufferSize = 8192
  143. # Number of connection retries after failure is detected in http client. httpclient uses default value "3"
  144. org.ops4j.pax.url.mvn.connection.retryCount = 3