Contents

This build tool allows installing XWiki Extensions into a running XWiki instance.

Install Mojo

To configure it, use for example:

<plugin>
 <groupId>org.xwiki.platform</groupId>
 <artifactId>xwiki-platform-tool-provision-plugin</artifactId>
 <version>${project.version}</version>
 <configuration>
   <xwikiRESTURL>http://localhost:8080/xwiki/rest</xwikiRESTURL>
   <username>Admin</username>
   <password>admin</password>
   <extensionIds>
     <extensionId>
       <id>org.xwiki.contrib.markdown:syntax-markdown-markdown12</id>
       <version>8.5.1</version>
     </extensionId>
   </extensionIds>
 </configuration>
 <executions>
   <execution>
     <id>install</id>
     <goals>
       <goal>install</goal>
     </goals>
   </execution>
 </executions>
</plugin>

To use it:

  • mvn install will execute the install mojo during the #pre-integration-test Maven phase.

Default configuration values:

  • username: superadmin
  • password: pass
  • xwikiRESTURL: http://localhost:8080/xwiki/rest##
  • namespaces: wiki:xwiki (i.e. main wiki). For example if you wish to install the extensions in wiki1 and wiki2 you'd use:
    <configuration>
     <namespaces>
       <namespace>wiki:wiki1</namespace>
       <namespace>wiki:wiki2</namespace>
     </namespaces>
    </configuration>
  • installUserReference: This is the author that will be used when installing the wiki pages. Uses the author from the page XML if not defined explicitly.
Tags:
Created by Vincent Massol on 2018/01/18 14:37
   

Get Connected