-
Notifications
You must be signed in to change notification settings - Fork 4
Installation instructions v 1.x
The following installation instructions explain how to install the project from the code of this repository. This project is built to run on top of XWiki Standard , version 9.11.3 - see http://www.xwiki.org .
Build the code of this repo using maven (set up as explained in http://dev.xwiki.org/xwiki/bin/view/Community/Building/#HInstallingMaven ), with
mvn clean install
then use the built artefacts to install as described under.
XWiki standard war, version 9.11.3, which can be downloaded from here: http://maven.xwiki.org/releases/org/xwiki/platform/xwiki-platform-web/9.11.3/ .
The following additional settings are required by the project:
-
Deploy XWiki to the webapps/ROOT instead of webapps/xwiki and modify WEB-INF/xwiki.cfg
- Uncomment xwiki.webapppath=
- Uncomment xwiki.defaultweb=Main
- Configure xwiki.showviewaction=0
- Configure xwiki.usepath=0
- Configure xwiki.authentication.cookiedomains=wikidemarches.xwiki.com,jenotemademarche.gouv.fr
- Install urlrewrite.xml in WEB-INF
-
Deploy
xwiki-platform-legacy-oldcore-DINSICDEMA9.11.3-b55fe5c5c2fb453bb4154999f94de7e014b7fa58.jar
as follows:- Checkout
xwiki-platform-legacy-oldcore-DINSICDEMA9.11.3-b55fe5c5c2fb453bb4154999f94de7e014b7fa58.jar
from the bin folder of the wikidemarches git repository - Copy and paste this jar into the WEB-INF/lib folder of the webapp
- Remove
xwiki-platform-legacy-oldcore-9.11.3.jar
from the same folder - Restart the server (once the operation below is done as well)
- Checkout
-
Deploy the excel plugin in WEB-INF/lib as follows:
- download the excel plugin jar from http://maven.xwiki.org/releases/org/xwiki/contrib/xwiki-plugin-excel/1.1/xwiki-plugin-excel-1.1.jar and copy it in WEB-INF/lib
- download jxl plugin from https://repo1.maven.org/maven2/net/sourceforge/jexcelapi/jxl/2.6.12/jxl-2.6.12.jar and copy it in WEB-INF/lib
- add ",com.xpn.xwiki.plugin.excel.ExcelPlugin" at the end of the value of xwiki.plugins in xwiki.cfg
- make sure the server is restarted after this operation
-
Deploy application publication jar in WEB-INF/lib, as follows:
- Deploy the JAR built by the module application-publication/application-publication-api (version 1.0-SNAPSHOT) in WEB-INF/lib
- make sure the server is restarted after this operation
- Install the XWiki Standard Flavor on the main wiki on first launch of the war. Create an administrator account called "Admin" during this installation.
Create a new subwiki, with the following parameters:
- Pretty name: Wiki Dématérialisation
- Wiki id: wikidemat
- Description: empty
- Flavor / template: XWiki Standard Flavor Sub Wiki, v 9.11.3
- Owner: the Admin user created during the creation of the main wiki
- User scope: Only global users
- Membership type: Only an admin can invite users
- Members: empty
- SSL: yes
Create a new subwiki, with the following parameters:
- Pretty name: Wiki Démarches
- Wiki id: wikidemarches
- Description: empty
- Flavor / template: XWiki Standard Flavor Sub Wiki, v 9.11.3
- Owner: the Admin user created during the creation of the main wiki
- User scope: Only global users
- Membership type: Only an admin can invite users
- Members: empty
- SSL: yes
First install:
- Using Administration->Content->Import, import the artifact
xwiki-dinsic-wikidemarches-wikis-xwiki-<version>.xar
Required extensions (to install from Administration -> Extensions):
- XWiki Livetable Excel Export Macro, version 2.0 (extension id:
org.xwiki.contrib:xwiki-livetable-excel-export-macro
) - Navigation block macro, version 1.0 (extension id:
ludovic:navigation-block-macro
) - UIN Script Service (for creating new identifiers from the Demarches creation form):
org.xwiki.contrib:api-uin-scriptservice
version 1.1 - Job macro:
org.xwiki.contrib:macro-job
version1.1.1
- Cookie Disclaimer extension
- Menu extension (don't use a global MenuMacro extension as the global wiki is not necessarily accessible with the same security level): flaviusolaru:navigation-menu-wiki-macro version 1.2
- Menu application:
org.xwiki.platform:xwiki-platform-menu-ui
version9.11.3
Deactivate Homepage Tour or it will issue an additional request on the home page.
Custom code
First install:
- Using Administration->Content->Import, import the artifact
xwiki-dinsic-wikidemarches-wikis-wikidemat-<version>.xar
Upgrade from a previous version of this project:
- Using Administration->Content->Import, import the artifact
xwiki-dinsic-wikidemarches-wikis-wikidemat-<version>.xar
- Manually remove from the wiki the pages that were deleted from the repo since the last install
- XWiki Livetable Excel Export Macro, version 2.0 (extension id:
org.xwiki.contrib:xwiki-livetable-excel-export-macro
) TODO: check it's ok to let any user download the list of procedures (demarches) - UIN Script Service (for creating new Avis):
org.xwiki.contrib:api-uin-scriptservice
version1.1
- Open Sans font as webjar: Using advanced search, install the following extension
org.webjars.bower:open-sans
version1.1.0
- Query Generator and Query Macro, version 1.4.1 (extension id:
org.xwiki.contrib:application-querygenerator
)- edit rights on page Macros.QueryGenerator and give 'view' right only to Admin group (local admin group)
- AppWithin Minutes Charts and Data, version 1.2.1 (extension id:
org.xwiki.contrib:appwithinminutes-charts
) - GitHub application, version 1.3.2 (extension id:
org.xwiki.contrib:application-github-app
)
Custom code
First install:
- Delete the french translation of the Main.WebHome page, as follows:
- Go to wiki administration
- Enable multilanguage, setup english and french as available languages
- Save
- Go on the main page, in french language, and manually change the url the delete action URL with parameter ?language=fr (/xwiki/bin/delete/Main/WebHome?language=fr)
- Confirm delete, accept to delete pages from default extensions
- Using Administration->Content->Import, import the artifact
xwiki-dinsic-wikidemarches-wikis-wikidemarches-<version>.xar
Upgrade from a previous version of this project:
- Using Administration->Content->Import, import the artifact
xwiki-dinsic-wikidemarches-wikis-wikidemarches-<version>.xar
- Manually remove from the wiki the pages that were deleted from the repo since the last install
- Check what's the biggest existing ID for Avis pages, and copy/paste that value to the UIN administration page.
Then see the data import instructions.