How can I find the version of XWiki I'm running?
Version 4.1 by Vincent Massol on 2016/04/04
Several possibilities:
- Check the bottom of any page and if you haven't overwritten the default skin/templates you should see something like:
- 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 {{/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()