Last modified by Clemens Robbenhaar on 2018/07/16
From version 2.1
edited by Clemens Robbenhaar
on 2016/01/22
on 2016/01/22
Change comment:
go-offline plugin avoids spurious build fail
To version 3.1
edited by Vincent Massol
on 2017/09/06
on 2017/09/06
Change comment:
Copied from platform:AdminGuide.FillLocalMavenRepository
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ClemensRobbenhaar1 +XWiki.VincentMassol - Content
-
... ... @@ -1,13 +1,14 @@ 1 -{{warning}}This should only be used if the server in which to install XWiki has no network access, and no other means to install the user interface is available. 1 +{{warning}} 2 +This should only be used if the server in which to install XWiki has no network access, and no other means to install the user interface is available. 2 2 {{/warning}} 3 3 4 4 === Prerequisites === 6 + 5 5 * a staging / development server which has access to the internet, to collect the necessary resources from there 6 6 * a minimal development environment on the staging server including the ##mvn## tool, as if you want to [[build XWiki from Source>>doc:dev:Community.Building]] 7 7 * a way to copy the resources from the staging to the production server 8 8 * write access to the ##xwiki.properties## on the server 9 9 10 - 11 11 === Download the UI resources === 12 12 13 13 First make sure that you have the right ##settings.xml## on the staging server, which has the XWiki repositories enabled. ... ... @@ -43,14 +43,16 @@ 43 43 44 44 Open a command line, change to the directory created in the previous step and issue the command: 45 45 46 -{{code}}mvn clean org.apache.maven.plugins:maven-dependency-plugin:go-offline{{/code}} 47 +{{code}} 48 +mvn clean org.apache.maven.plugins:maven-dependency-plugin:go-offline 49 +{{/code}} 47 47 48 48 This should download all the required resources and dependencies. 49 49 50 50 === Install the resources on the server === 51 51 52 -As the next step, copy the complete ## ~/.m2/repository## to a directory on the production server where the user running the XWiki webapp can read it.53 -(**TODO:** figure out if only parts of the directory are sufficient, i.e. ## ~/.m2/repository/org/xwiki##)55 +As the next step, copy the complete ##/.m2/repository## to a directory on the production server where the user running the XWiki webapp can read it. 56 +(**TODO:** figure out if only parts of the directory are sufficient, i.e. ##/.m2/repository/org/xwiki##) 54 54 55 55 Configure in the ##xwiki.properties## the destination directory on the server as the "main xwiki" repository: 56 56