Several possibilities:

  • Check the bottom of any page and if you haven't overwritten the default skin/templates you should see something like:

    version.png

  • Create a new page or edit any existing page in wiki model, put the following and click the 'preview' button, it will display your XWiki version:
    {{velocity}}
    $xwiki.version
    {{/velocity}}

    or

    {{velocity}}
    $services.extension.core.repository.environmentExtension.id.version.value
    {{/velocity}}
  • Access your server's filesystem and inside XWiki's WEB-INF/lib directory look for JARs using the format xwiki-*-<version>.jar. The <version> part will be your version.
  • From Java:
    @Inject
    private CoreExtensionRepository coreExtensionRepository;
    ...
    CoreExtension distributionExtension = this.coreExtensionRepository.getEnvironmentExtension()
    Version version = distributionExtension.getId().getVersion()
Tags:
Created by Vincent Massol on 2014/07/16
   

Get Connected