You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configuration-files.apt.vm 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ------
  2. Configuration Files of Apache Archiva
  3. ------
  4. ------
  5. 2012-11-24
  6. ------
  7. ~~ Licensed to the Apache Software Foundation (ASF) under one
  8. ~~ or more contributor license agreements. See the NOTICE file
  9. ~~ distributed with this work for additional information
  10. ~~ regarding copyright ownership. The ASF licenses this file
  11. ~~ to you under the Apache License, Version 2.0 (the
  12. ~~ "License"); you may not use this file except in compliance
  13. ~~ with the License. You may obtain a copy of the License at
  14. ~~
  15. ~~ http://www.apache.org/licenses/LICENSE-2.0
  16. ~~
  17. ~~ Unless required by applicable law or agreed to in writing,
  18. ~~ software distributed under the License is distributed on an
  19. ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20. ~~ KIND, either express or implied. See the License for the
  21. ~~ specific language governing permissions and limitations
  22. ~~ under the License.
  23. Configuration Files of Apache Archiva
  24. While Archiva is primarily configured via the graphical administration interface, it stores all configuration in XML configuration
  25. files that can be hand edited and used for backup and migration.
  26. The following files compose the configuration for Archiva:
  27. * <<<archiva.xml>>> - this is the primary Archiva configuration file
  28. * <<<security.properties>>> - This file, if it exists, is only read once to populate the
  29. Redback Runtime Configuration properties (see {{{./redback-runtime-configuration.html#Runtime_Properties}Redback Runtime Configuration}},
  30. stored in <<<archiva.xml>>>. The file will be ignored after this.
  31. This section will focus on the <<<archiva.xml>>> file.
  32. * The Archiva configuration file
  33. The Archiva configuration file is stored in one of two locations:
  34. * The application server configuration directory (see {{{./standalone.html} installing Archiva standalone}} for more information)
  35. * The user home directory (<<<~/.m2/archiva.xml>>>).
  36. []
  37. When modified in the GUI, the file is written back to the location it was initially read from, with the home directory taking priority if both exist. When using a
  38. standalone installation, it is highly recommended that a configuration file is only maintained in one of the locations.
  39. For a complete reference of the configuration file see: {{{http://archiva.apache.org/ref/${project.version}/archiva-base/archiva-configuration/configuration.html}Reference}}
  40. The following shows a basic configuration file:
  41. +----+
  42. <configuration>
  43. <version>2</version>
  44. <managedRepositories>
  45. <managedRepository>
  46. <location>${appserver.base}/repositories/internal</location>
  47. <daysOlder>30</daysOlder>
  48. <id>internal</id>
  49. <name>Archiva Managed Internal Repository</name>
  50. </managedRepository>
  51. </managedRepositories>
  52. <remoteRepositories>
  53. <remoteRepository>
  54. <url>http://repo1.maven.org/maven2</url>
  55. <id>central</id>
  56. <name>Central Repository</name>
  57. </remoteRepository>
  58. </remoteRepositories>
  59. <proxyConnectors>
  60. <proxyConnector>
  61. <sourceRepoId>internal</sourceRepoId>
  62. <targetRepoId>central</targetRepoId>
  63. <policies>
  64. <releases>always</releases>
  65. <checksum>fix</checksum>
  66. <snapshots>never</snapshots>
  67. <cache-failures>no</cache-failures>
  68. </policies>
  69. </proxyConnector>
  70. </proxyConnectors>
  71. </configuration>
  72. +----+
  73. ~~TODO: need a full reference