Changes for page Extension Repositories
Last modified by Thomas Mortagne on 2021/04/07 09:13
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7,7 +7,7 @@ 7 7 8 8 You can control the list of Repositories to use by setting the ##extension.repositories## property in your ##xwiki.properties## file. Here's the documentation you'll find when editing ##xwiki.properties##: 9 9 10 -{{code}} 10 +{{code language="properties"}} 11 11 #-# [Since 2.5] 12 12 #-# Repositories to use when searching and downloading extensions. 13 13 #-# ... ... @@ -16,6 +16,25 @@ 16 16 #-# * type is the type of the repository (maven, xwiki, etc.) 17 17 #-# * url is the URL or the root of the repository 18 18 #-# 19 +#-# [Since 4.3] It's also possible to associate various properties to each repository. 20 +#-# Here are the standard properties: 21 +#-# * user: the user to use to authenticate to the repository 22 +#-# * password: the password to use to authenticate to the repository 23 +#-# 24 +#-# Here is an example: 25 +# extension.repositories=privatemavenid:maven:http://host.com/private/maven/ 26 +# extension.repositories.privatemavenid.auth.user=someuser 27 +# extension.repositories.privatemavenid.auth.password=thepassword 28 +#-# 29 +#-# Here's an example to add your local Maven Repository 30 +## Note: Since this file is parsed by Velocity in the Maven Remote Resource plugin we need to escape the 31 +## Apache Commons Configuration syntax for specifying the user.home system property! 32 +#set ($userHome = '${sys:user.home}') 33 +# extension.repositories=local:maven:file://${userHome}/.m2/repository 34 +#-# 35 +#-# And an example to add the XWiki Maven Snapshot Repository 36 +# extension.repositories=maven-xwiki-snapshot:maven:http://nexus.xwiki.org/nexus/content/groups/public-snapshots 37 +#-# 19 19 #-# The default is: 20 20 # extension.repositories=maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public 21 21 # extension.repositories=extensions.xwiki.org:xwiki:http://extensions.xwiki.org/xwiki/rest/ ... ... @@ -23,7 +23,7 @@ 23 23 24 24 Thus for example if you wish to add your local Maven repository (##~/.m2/repository## in this case) so that you can test an extension you'd have built locally with Maven you'd write: 25 25 26 -{{code}} 45 +{{code language="properties"}} 27 27 extension.repositories=local:maven:file://${sys:user.home}/.m2/repository 28 28 extension.repositories=maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public 29 29 extension.repositories=extensions.xwiki.org:xwiki:http://extensions.xwiki.org/xwiki/rest/ ... ... @@ -31,7 +31,7 @@ 31 31 32 32 If you wish to add the XWiki Snapshot repo you'd add: 33 33 34 -{{code}} 53 +{{code language="properties"}} 35 35 ... 36 36 extension.repositories=maven-xwiki-snapshot:maven:http://nexus.xwiki.org/nexus/content/groups/public-snapshots/ 37 37 ... ... ... @@ -39,7 +39,7 @@ 39 39 40 40 If you have installed the [[Repository Application>>Repository Application]] and you wish to add it as a repository you'd add: 41 41 42 -{{code}} 61 +{{code language="properties"}} 43 43 ... 44 44 extension.repositories=localxr:xwiki:http://localhost:8080/xwiki/rest/ 45 45 ...