Details
-
Bug
-
Resolution: Fixed
-
Major
-
12.10.1
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Following the fix on XWIKI-18181, the Maven Provision plugin is still not working in a simple environment. The issue is that the module xwiki-platform-wiki-default relies on a cache, which is handled by infinispan by default (as per https://github.com/xwiki/xwiki-commons/blob/7dc226d7bb29815af9f715277981188c9a3d6a49/xwiki-commons-core/xwiki-commons-cache/xwiki-commons-cache-api/src/main/java/org/xwiki/cache/internal/DefaultCacheManagerConfiguration.java#L47), which will not work without a servlet context.
As such, the following error will be thrown during the plugin execution :
[ERROR] Failed to execute goal org.xwiki.platform:xwiki-platform-tool-provision-plugin:13.0-SNAPSHOT:install (install) on project auto-deploy: Failed to install Extension(s) into XWiki: Failed to lookup component [org.xwiki.rest.internal.ModelFactory] identified by type [class org.xwiki.rest.internal.ModelFactory] and hint [null]: Failed to lookup component [org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager] identified by type [interface org.xwiki.wiki.descriptor.WikiDescriptorManager] and hint [default]: Failed to lookup component [org.xwiki.wiki.internal.manager.WikiDescriptorCache] identified by type [class org.xwiki.wiki.internal.manager.WikiDescriptorCache] and hint [default]: Failed to initialize wiki descriptor caches [wiki.descriptor.cache.wikiAlias]: Failed to get cache factory for role hint [infinispan]: Failed to lookup component [org.xwiki.cache.infinispan.internal.InfinispanCacheFactory] identified by type [interface org.xwiki.cache.CacheFactory] and hint [infinispan]: The Servlet Environment has not been properly initialized (The Servlet Context is not set) -> [Help 1]