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.

upgrade.apt 4.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ------
  2. Upgrading Archiva
  3. ------
  4. ~~ Licensed to the Apache Software Foundation (ASF) under one
  5. ~~ or more contributor license agreements. See the NOTICE file
  6. ~~ distributed with this work for additional information
  7. ~~ regarding copyright ownership. The ASF licenses this file
  8. ~~ to you under the Apache License, Version 2.0 (the
  9. ~~ "License"); you may not use this file except in compliance
  10. ~~ with the License. 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,
  15. ~~ software distributed under the License is distributed on an
  16. ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17. ~~ KIND, either express or implied. See the License for the
  18. ~~ specific language governing permissions and limitations
  19. ~~ under the License.
  20. Upgrading Archiva
  21. Upgrading Archiva is straightforward, particularly if the directions for separating the base from the installation
  22. are followed. You need to retain the following directories:
  23. * <<<conf>>> - the configuration files can be reused across different versions. Note that when the standalone
  24. version is used, <<<wrapper.conf>>> and <<<jetty.xml>>> may need to be replaced after upgrade and changes
  25. reapplied. See specific notes in the version details below.
  26. * <<<data>>> - all Archiva data. More specifically:
  27. * <<<data/repositories>>> is portable across versions (both forwards and backwards).
  28. * <<<data/databases/users>>> must always be retained as it contains the permissions and user information across
  29. versions, even if LDAP is being used for authentication.
  30. * <<<data/databases/archiva>>> exists for Archiva 1.3.x and below. This can be retained through upgrades, but
  31. can also be regenerated at any time. This no longer exists in Archiva 1.4+.
  32. []
  33. []
  34. The following describes instructions specific to upgrading between different versions.
  35. * Upgrading Archiva to 1.4+
  36. ** Metadata Repository
  37. ~~TODO: metadata repository description
  38. ** Java Package Changes and Library Changes
  39. All Java packages have changed from <<<org.apache.maven.archiva>>> to <<<org.apache.archiva>>> and have undergone
  40. significant changes. If you have written custom consumers, are using the XML-RPC client, or interfacing with other
  41. Java libraries the code will need to be adjusted.
  42. ** Configuration References
  43. If you had used the undocumented ability to modify <<<application.xml>>> to alter the configuration search path, note
  44. that in Archiva 1.4+ you must use the <<<org.apache.archiva>>> configuration search path instead of
  45. <<<org.apache.maven.archiva>>>.
  46. ** Updated Jetty configuration
  47. If you are using the Jetty standalone configuration with a custom
  48. <<<jetty.xml>>>, note that it has been upgraded to Jetty 7 as of Archiva 1.4-M2.
  49. You will need to recreate your customisations using the <<<jetty.xml>>> shipped
  50. with Archiva.
  51. In addition, you now need to ensure that a <<<temp>>> directory is created
  52. inside the Archiva application base directory (alongside <<<conf>>>, <<<data>>>
  53. and <<<logs>>>).
  54. * Upgrading Archiva to 1.2.2
  55. Since Archiva 1.2.2, the Jetty version has been upgraded to 6.1.19.
  56. If upgrading to Archiva 1.2.2 (or higher versions), there is a need to update the library contents listed in
  57. <<<ARCHIVA_BASE/conf/wrapper.conf>>> with the ones included in the new distribution if the <<<ARCHIVA_BASE>>>
  58. directory is separate from the installation.